You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.
require argument seems to be ignored & error is thrown:
✖ 「config」: An error ocurred while trying to load /Users/mhuggins/Development/nos/client/config/webpack.babel.js Did you forget to specify a --require?/Users/mhuggins/Development/nos/client/node_modules/@webpack-contrib/config-loader/lib/load.js:84 throw new LoadConfigError(e, configPath); ^LoadConfigError: Unexpected token importimport path from 'path';^^^^^^SyntaxError: Unexpected token import at NativeCompileCache._moduleCompile (/Users/mhuggins/Development/nos/client/node_modules/v8-compile-cache/v8-compile-cache.js:226:18) at Module._compile (/Users/mhuggins/Development/nos/client/node_modules/v8-compile-cache/v8-compile-cache.js:172:36) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (/Users/mhuggins/Development/nos/client/node_modules/v8-compile-cache/v8-compile-cache.js:159:20) at loadJs (/Users/mhuggins/Development/nos/client/node_modules/@webpack-contrib/config-loader/node_modules/cosmiconfig/dist/loaders.js:8:18) at Explorer.loadFileContent (/Users/mhuggins/Development/nos/client/node_modules/@webpack-contrib/config-loader/node_modules/cosmiconfig/dist/createExplorer.js:226:12)error An unexpected error occurred: "Command failed.Exit code: 1Command: shArguments: -c webpack-serve --require babel-register --config config/webpack.babel.jsDirectory: /Users/mhuggins/Development/nos/client
How Do We Reproduce?
Try to --require babel-register along with an ES6 webpack config file.
Additionally, try replacing "babel-register" with literally any string, and it doesn't seem to be attempting to require the file regardless of name.
The text was updated successfully, but these errors were encountered:
@nisargrthakkar this goes for the entirety of Github and every project on it: If you don't see replies / tags / associated issues and/or pull requests listed in an issue - There have been no updates. So there's no need to ask.
This issue is for a:
Code
CLI Command
$ webpack-serve --require babel-register --config config/webpack.babel.js
webpack.config.js
Expected Behavior
Webpack config loads after
babel-register
loads.Actual Behavior
require
argument seems to be ignored & error is thrown:How Do We Reproduce?
Try to
--require babel-register
along with an ES6 webpack config file.Additionally, try replacing "babel-register" with literally any string, and it doesn't seem to be attempting to require the file regardless of name.
The text was updated successfully, but these errors were encountered: