Skip to content
New issue

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

loader issues #18

Open
abdullahsuhaisk opened this issue Sep 10, 2018 · 0 comments
Open

loader issues #18

abdullahsuhaisk opened this issue Sep 10, 2018 · 0 comments

Comments

@abdullahsuhaisk
Copy link

i ve whated video 3. i ve some problem about loaders. This issue ;
Asset Size Chunks Chunk Names
bundle.js 102 kB 0 main
chunk {0} bundle.js (main) 78 kB [rendered]
[0] multi main 40 bytes {0} [built] [1 error]
[1] .//html-entities/lib/html5-entities.js 49 kB {0} [built]
[2] ./
/ansi-html/index.js 4.26 kB {0} [built]
[3] .//ansi-regex/index.js 135 bytes {0} [built]
[4] ./
/html-entities/index.js 231 bytes {0} [built]
[5] .//html-entities/lib/html4-entities.js 6.59 kB {0} [built]
[6] ./
/html-entities/lib/xml-entities.js 2.99 kB {0} [built]
[7] ./~/strip-ansi/index.js 161 bytes {0} [built]
[8] (webpack)-hot-middleware/client-overlay.js 2.21 kB {0} [built]
[9] (webpack)-hot-middleware/client.js 7.77 kB {0} [built]
[10] (webpack)-hot-middleware/process-update.js 4.33 kB {0} [built]
[11] (webpack)/buildin/module.js 251 bytes {0} [built]

ERROR in multi main
Module not found: Error: Cannot resolve module 'react-hot' in D:\WorkSpace\Tutorals\ReactReduxTutorial
@ multi main

And i changed web.pack.config.dev.js

import path from 'path'
import webpack from 'webpack';

export default {
devtools: 'eval-source-map',
entry: [
'webpack-hot-middleware/client',
path.join(__dirname, '/client/index.js')
],
output: {
path: '/',
publicPath: '/'
},
plugins: [
new webpack.NoErrorsPlugin(),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin()
],
module: {
loaders: [
{
test: /.js$/,
include: [
path.join(__dirname, 'client'),
path.join(__dirname, 'server/shared')
],
loaders: [ 'babel' ]
}
]
},
resolve: {
extentions: [ '', '.js' ]
}
}

   i only changed  "loaders: [ 'babel' ]" so my react's rendering need refresh every changes. How can i solve them ?

And here is my git repo ; https://github.com/abdullahsuhaisk/ReactRedux.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant