Open sidebar
app.js ----- import { domquery } from "./domquery"; import "../css/style.css" domquery.textContent="Merhaba!"; webpack.config.js ---- module.exports = { entry: './src/js/app.js', output: { filename: 'bundle.js', path: __dirname + '/dist' }, module: { loaders: [ { test: /\.css$/, loader: "style-loader!css-loader" } ] } } Hata Mesajı ---- > webpack-blog-ders@1.0.0 build /Users/onurkaya/WebstormProjects/demo/webpack-blog-ders > webpack Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.module has an unknown property 'loaders'. These properties are valid: object { defaultRules?, exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, strictExportPresence?, strictThisContextOnImports?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp? } -> Options affecting the normal modules (`NormalModuleFactory`). npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! webpack-blog-ders@1.0.0 build: `webpack` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the webpack-blog-ders@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! Log Kaydı: ----- 0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ] 2 info using npm@6.9.0 3 info using node@v12.2.0 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle webpack-blog-ders@1.0.0~prebuild: webpack-blog-ders@1.0.0 6 info lifecycle webpack-blog-ders@1.0.0~build: webpack-blog-ders@1.0.0 7 verbose lifecycle webpack-blog-ders@1.0.0~build: unsafe-perm in lifecycle true 8 verbose lifecycle webpack-blog-ders@1.0.0~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecy$ 9 verbose lifecycle webpack-blog-ders@1.0.0~build: CWD: /Users/onurkaya/WebstormProjects/demo/webpack-blog-ders 10 silly lifecycle webpack-blog-ders@1.0.0~build: Args: [ '-c', 'webpack' ] 11 silly lifecycle webpack-blog-ders@1.0.0~build: Returned: code: 1 signal: null 12 info lifecycle webpack-blog-ders@1.0.0~build: Failed to exec build script 13 verbose stack Error: webpack-blog-ders@1.0.0 build: `webpack` 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/ind$ 13 verbose stack at EventEmitter.emit (events.js:196:13) 13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib$ 13 verbose stack at ChildProcess.emit (events.js:196:13) 13 verbose stack at maybeClose (internal/child_process.js:1011:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:268:5) 14 verbose pkgid webpack-blog-ders@1.0.0 15 verbose cwd /Users/onurkaya/WebstormProjects/demo/webpack-blog-ders 16 verbose Darwin 18.5.0 17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" 18 verbose node v12.2.0 19 verbose npm v6.9.0 20 error code ELIFECYCLE 21 error errno 1 22 error webpack-blog-ders@1.0.0 build: `webpack` 22 error Exit status 1 23 error Failed at the webpack-blog-ders@1.0.0 build script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]
Close sidebar
Back
Please note that all pasted data is publicly available.
Twitter
GitHub
Use setting
Back
Please note that all pasted data is publicly available.
Twitter
GitHub
Use setting