We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm not getting any error in npm console but in browser console I'm getting Uncaught Error: Cannot find module "./main.scss"
Uncaught Error: Cannot find module "./main.scss"
It working well if I do import '!style!css!sass!./main.scss' but getting this error when I do import './main.scss
import '!style!css!sass!./main.scss'
import './main.scss
webpack.config.js
`var HtmlWebpackPlugin = require('html-webpack-plugin'); var path = require('path'); var webpack = require('webpack');
module.exports = { entry: './src/index.js', output: { path: './bin', filename: 'bundle.js' }, module: { loaders: [ { test: /.js$/, loader: 'babel-loader', exclude: /node_modules/, query: { presets: ['es2015', 'react'] } }, { test: /.(png|woff|woff2|eot|ttf|svg)$/, loader: 'file?name=public/fonts/[name].[ext]' }, { test: /.scss$/, loaders: ['style','css','sass'] } ] }, plugins: [new HtmlWebpackPlugin( { filename: './index.html', template: require('html-webpack-template'), appMountId: 'app', } )] , sassLoader: { includePaths: [ path.resolve(__dirname, "./node_modules/materialize-sass/sass/") ] } };`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
I'm not getting any error in npm console but in browser console I'm getting
Uncaught Error: Cannot find module "./main.scss"
It working well if I do
import '!style!css!sass!./main.scss'
but getting this error when I doimport './main.scss
webpack.config.js
`var HtmlWebpackPlugin = require('html-webpack-plugin');
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: './src/index.js',
output: {
path: './bin',
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015', 'react']
}
},
{
test: /.(png|woff|woff2|eot|ttf|svg)$/,
loader: 'file?name=public/fonts/[name].[ext]'
},
{
test: /.scss$/,
loaders: ['style','css','sass']
}
]
},
plugins: [new HtmlWebpackPlugin(
{
filename: './index.html',
template: require('html-webpack-template'),
appMountId: 'app',
}
)]
,
sassLoader: {
includePaths: [
path.resolve(__dirname, "./node_modules/materialize-sass/sass/")
]
}
};`
The text was updated successfully, but these errors were encountered: