small medium large xlarge

Generic-user-small
21 Apr 2017, 02:39
Philippe Haussy (13 posts)

Seems to come from resolving devServer in configuration.js const devServer = safeLoad(readFileSync(join(configPath, ‘development.server.yml’), ‘utf8’))[env.NODE_ENV]

Here is the error: ~/workspace/shine $ node_modules/.bin/karma start spec/javascript/karma.conf.js –single-run –log-level=error –fail-on-empty-test-suite 21 04 2017 01:59:39.874:ERROR [config]: Error in config file! TypeError: Cannot read property ‘host’ of undefined at Object. (/home/ubuntu/workspace/shine/config/webpack/configuration.js:15:41) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (/home/ubuntu/workspace/shine/node_modules/coffee-script/lib/coffee-script/register.js:45:36) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object. (/home/ubuntu/workspace/shine/config/webpack/shared.js:11:48) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (/home/ubuntu/workspace/shine/node_modules/coffee-script/lib/coffee-script/register.js:45:36) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object. (/home/ubuntu/workspace/shine/config/webpack/test.js:4:22) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (/home/ubuntu/workspace/shine/node_modules/coffee-script/lib/coffee-script/register.js:45:36) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at module.exports (/home/ubuntu/workspace/shine/spec/javascript/karma.conf.js:10:14) at Object.parseConfig (/home/ubuntu/workspace/shine/node_modules/karma/lib/config.js:410:5) at new Server (/home/ubuntu/workspace/shine/node_modules/karma/lib/server.js:56:20) at Object.exports.run (/home/ubuntu/workspace/shine/node_modules/karma/lib/cli.js:280:7) at Object. (/home/ubuntu/workspace/shine/node_modules/karma/bin/karma:3:23) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.runMain (module.js:605:10) at run (bootstrap_node.js:423:7) at startup (bootstrap_node.js:147:9) at bootstrap_node.js:538:3

configuration.js: // Common configuration for webpacker loaded from config/webpack/paths.yml

const { join, resolve } = require(‘path’) const { env } = require(‘process’) const { safeLoad } = require(‘js-yaml’) const { readFileSync } = require(‘fs’)

const configPath = resolve(‘config’, ‘webpack’) const loadersDir = join(__dirname, ‘loaders’) const paths = safeLoad(readFileSync(join(configPath, ‘paths.yml’), ‘utf8’))[env.NODE_ENV] const devServer = safeLoad(readFileSync(join(configPath, ‘development.server.yml’), ‘utf8’))[env.NODE_ENV]

// Compute public path based on environment and ASSET_HOST in production const ifHasCDN = env.ASSET_HOST !== undefined && env.NODE_ENV === ‘production’ const devServerUrl = http://${devServer.host}:${devServer.port}/${paths.entry}/ const publicUrl = ifHasCDN ? ${env.ASSET_HOST}/${paths.entry}/ : /${paths.entry}/ const publicPath = env.NODE_ENV !== ‘production’ && devServer.enabled ? devServerUrl : publicUrl

module.exports = { devServer, env, paths, loadersDir, publicUrl, publicPath }

my package.json: { “dependencies”: { “@angular/common”: “~4.0.0”, “@angular/compiler”: “~4.0.0”, “@angular/core”: “~4.0.0”, “@angular/forms”: “~4.0.0”, “@angular/http”: “~4.0.0”, “@angular/platform-browser”: “~4.0.0”, “@angular/platform-browser-dynamic”: “~4.0.0”, “@angular/router”: “~4.0.0”, “babel-core”: “^6.24.0”, “babel-loader”: “^6.4.1”, “babel-preset-env”: “^1.2.2”, “bootstrap”: “3”, “coffee-loader”: “^0.7.3”, “coffee-script”: “^1.12.4”, “compression-webpack-plugin”: “^0.3.2”, “core-js”: “^2.4.1”, “css-loader”: “^0.27.3”, “extract-text-webpack-plugin”: “^2.1.0”, “file-loader”: “^0.10.1”, “glob”: “^7.1.1”, “path-complete-extname”: “^0.1.0”, “rails-erb-loader”: “^3.2.0”, “rxjs”: “5.0.1”, “style-loader”: “^0.15.0”, “systemjs”: “0.19.40”, “url-loader”: “^0.5.8”, “webpack”: “^2.3.0”, “webpack-manifest-plugin”: “^1.1.0”, “webpack-merge”: “^4.1.0”, “zone.js”: “^0.8.4” }, “devDependencies”: { “jasmine”: “^2.5.3”, “jasmine-core”: “^2.5.2”, “karma”: “^1.6.0”, “karma-jasmine”: “^1.1.0”, “karma-phantomjs-launcher”: “^1.0.4”, “karma-webpack”: “^2.0.3”, “testdouble”: “^2.1.2”, “webpack-dev-server”: “^2.4.2” } }

my development.server.yml: # Restart webpack-dev-server if you make changes here default: &default enabled: true host: shine-coreprodev.c9users.io port: 8081

development: «: *default

test: «: *default enabled: false

production: «: *default enabled: false

thank you,

Philippe

Dmfcb_pragsmall
21 Apr 2017, 11:38
David Copeland (467 posts)

I can’t really understand the output you’ve pasted as it’s all jumbled up and been reformatted.

Can you post a link to your repository somewhere? It’s usually easier to diagnose these issues if I can see the entire thing.

Generic-user-small
21 Apr 2017, 14:23
Philippe Haussy (13 posts)

Here it is:

https://beeprodev@bitbucket.org/beeprodev/shine.git

Thank you,

Philippe

Dmfcb_pragsmall
22 Apr 2017, 12:38
David Copeland (467 posts)

It’s still hard to understand what is happening because the format is so jumbled up. But it looks like in

https://bitbucket.org/beeprodev/shine/src/b50d41ca9c5c35226df5c097df855063dbc36f92/config/webpack/configuration.js?at=master&fileviewer=file-view-default#configuration.js-11

it is not properly parsing the YAML file that has the information in it.

If I were going to try to debug this, I’d put in some logging before this line and look at the value of:

  • env.NODE_ENV
  • The contents of safeLoad(readFileSync(join(configPath, 'development.server.yml'), 'utf8'))
  • contents of safeLoad(readFileSync(join(configPath, 'development.server.yml'), 'utf8'))["test"]
  • contents of safeLoad(readFileSync(join(configPath, 'development.server.yml'), 'utf8'))["development"]

It seems like that line is returning undefined, but I would expect NODE_ENV to be “test” and, based on the contents of that file in your app, it should return an object that has the key host.

Generic-user-small
23 Apr 2017, 03:19
Philippe Haussy (13 posts)

setting env.NODE_ENV= test solved the issue.NODE_ENV was undefined before. Thanks

I am now getting the following error:

cd /home/ubuntu/workspace/shine node_modules/.bin/karma start spec/javascript/karma.conf.js –single-run –log-level=error –fail-on-empty-test-suite env.NODE_ENV= test webpack: wait until bundle finished: 23 04 2017 03:11:31.327:ERROR [karma]: { Error: EACCES: permission denied, mkdir ‘/karma_webpack’ at Object.fs.mkdirSync (fs.js:895:18) at Object.mkdirsSync (/home/ubuntu/workspace/shine/node_modules/webpack-manifest-plugin/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:29:9) at Object.outputFileSync (/home/ubuntu/workspace/shine/node_modules/webpack-manifest-plugin/node_modules/fs-extra/lib/output/index.js:28:9) at ManifestPlugin. (/home/ubuntu/workspace/shine/node_modules/webpack-manifest-plugin/lib/plugin.js:110:11) at Compiler.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:142:13) at Compiler.emitAssets (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compiler.js:303:7) at onCompiled (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compiler.js:54:18) at /home/ubuntu/workspace/shine/node_modules/webpack/lib/Compiler.js:494:13 at next (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:138:11) at Compiler. (/home/ubuntu/workspace/shine/node_modules/webpack/lib/CachePlugin.js:62:5) at Compiler.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:142:13) at /home/ubuntu/workspace/shine/node_modules/webpack/lib/Compiler.js:491:10 at Compilation.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:131:46) at self.applyPluginsAsync.err (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:645:19) at Compilation.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:131:46) at self.applyPluginsAsync.err (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:636:11) at Compilation.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:131:46) at self.applyPluginsAsync.err (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:631:10) at next (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:138:11) at ExtractTextPlugin. (/home/ubuntu/workspace/shine/node_modules/extract-text-webpack-plugin/index.js:341:4) at Compilation.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:142:13) at sealPart2 (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:627:9) at next (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:138:11) at ExtractTextPlugin. (/home/ubuntu/workspace/shine/node_modules/extract-text-webpack-plugin/index.js:313:5) at /home/ubuntu/workspace/shine/node_modules/async/dist/async.js:460:16 at iteratorCallback (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:1034:13) at /home/ubuntu/workspace/shine/node_modules/async/dist/async.js:944:16 at /home/ubuntu/workspace/shine/node_modules/extract-text-webpack-plugin/index.js:297:6 at /home/ubuntu/workspace/shine/node_modules/async/dist/async.js:460:16 at iteratorCallback (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:1034:13) at /home/ubuntu/workspace/shine/node_modules/async/dist/async.js:944:16 at /home/ubuntu/workspace/shine/node_modules/extract-text-webpack-plugin/index.js:294:13 at /home/ubuntu/workspace/shine/node_modules/async/dist/async.js:3047:16 at eachOfArrayLike (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:1039:9) at eachOf (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:1087:5) at Object.eachLimit (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:3109:3) at /home/ubuntu/workspace/shine/node_modules/extract-text-webpack-plugin/index.js:268:11 at /home/ubuntu/workspace/shine/node_modules/async/dist/async.js:3047:16 at eachOfArrayLike (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:1039:9) at eachOf (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:1087:5) at Object.eachLimit (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:3109:3) at ExtractTextPlugin. (/home/ubuntu/workspace/shine/node_modules/extract-text-webpack-plugin/index.js:265:10) at Compilation.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:142:13) at Compilation.seal (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:575:8) at /home/ubuntu/workspace/shine/node_modules/webpack/lib/Compiler.js:488:16 at /home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:225:11 at done (/home/ubuntu/workspace/shine/node_modules/karma-webpack/node_modules/async/lib/async.js:132:19) at /home/ubuntu/workspace/shine/node_modules/karma-webpack/node_modules/async/lib/async.js:32:16 at Plugin. (/home/ubuntu/workspace/shine/node_modules/karma-webpack/lib/karma-webpack.js:185:7) at _addModuleChain (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:477:11) at processModuleDependencies.err (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:448:13) at _combinedTickCallback (internal/process/next_tick.js:73:7) at process._tickCallback (internal/process/next_tick.js:104:9)

errno: -13, code: ‘EACCES’, syscall: ‘mkdir’, path: ‘/karma_webpack’ } rake aborted!

I have webpack-manifest-plugin@1.1.0 installed but I am not finding this package in your package.json

+– compression-webpack-plugin@0.3.2 | -- webpack-sources@0.1.5 +-- extract-text-webpack-plugin@2.1.0 +-- karma-webpack@2.0.3 | – webpack-dev-middleware@1.10.1 +– webpack@2.4.1 | +– webpack-sources@0.2.3 +– webpack-dev-server@2.4.2 +– webpack-manifest-plugin@1.1.0 +– webpack-merge@4.1.0

Dmfcb_pragsmall
23 Apr 2017, 13:43
David Copeland (467 posts)

Is there any way you can format that so it’s readable? It’s totally jumbled. You can precede the text with three tildes and end it with three tildes and it will monospace it sounds it’s readable.

Generic-user-small
23 Apr 2017, 16:05
Philippe Haussy (13 posts)

Hopefully, this is better now.

Below is the error but I think the difference comes from the following (compare with your webpack plugins)


my plugins
 plugins: [
    new webpack.EnvironmentPlugin(JSON.parse(JSON.stringify(env))),
    new ExtractTextPlugin(env.NODE_ENV === 'production' ? '[name]-[hash].css' : '[name].css'),
    new ManifestPlugin({ fileName: paths.manifest, publicPath, writeToFileEmit: true })
  ],


your plugin
 plugins: [
    new webpack.EnvironmentPlugin(Object.keys(process.env))
  ],
coreprodev:~/workspace/shine (master) $ rake karma
cd /home/ubuntu/workspace/shine
node_modules/.bin/karma start spec/javascript/karma.conf.js --single-run --log-level=error --fail-on-empty-test-suite
env.NODE_ENV= test
webpack: wait until bundle finished: 
23 04 2017 15:53:01.362:ERROR [karma]: { Error: EACCES: permission denied, mkdir '/_karma_webpack_'
    at Object.fs.mkdirSync (fs.js:895:18)
    at Object.mkdirsSync (/home/ubuntu/workspace/shine/node_modules/webpack-manifest-plugin/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:29:9)
    at Object.outputFileSync (/home/ubuntu/workspace/shine/node_modules/webpack-manifest-plugin/node_modules/fs-extra/lib/output/index.js:28:9)
    at ManifestPlugin.<anonymous> (/home/ubuntu/workspace/shine/node_modules/webpack-manifest-plugin/lib/plugin.js:110:11)
    at Compiler.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:142:13)
    at Compiler.emitAssets (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compiler.js:303:7)
    at onCompiled (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compiler.js:54:18)
    at /home/ubuntu/workspace/shine/node_modules/webpack/lib/Compiler.js:494:13
    at next (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:138:11)
    at Compiler.<anonymous> (/home/ubuntu/workspace/shine/node_modules/webpack/lib/CachePlugin.js:62:5)
    at Compiler.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:142:13)
    at /home/ubuntu/workspace/shine/node_modules/webpack/lib/Compiler.js:491:10
    at Compilation.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:131:46)
    at self.applyPluginsAsync.err (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:645:19)
    at Compilation.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:131:46)
    at self.applyPluginsAsync.err (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:636:11)
    at Compilation.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:131:46)
    at self.applyPluginsAsync.err (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:631:10)
    at next (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:138:11)
    at ExtractTextPlugin.<anonymous> (/home/ubuntu/workspace/shine/node_modules/extract-text-webpack-plugin/index.js:341:4)
    at Compilation.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:142:13)
    at sealPart2 (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:627:9)
    at next (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:138:11)
    at ExtractTextPlugin.<anonymous> (/home/ubuntu/workspace/shine/node_modules/extract-text-webpack-plugin/index.js:313:5)
    at /home/ubuntu/workspace/shine/node_modules/async/dist/async.js:460:16
    at iteratorCallback (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:1034:13)
    at /home/ubuntu/workspace/shine/node_modules/async/dist/async.js:944:16
    at /home/ubuntu/workspace/shine/node_modules/extract-text-webpack-plugin/index.js:297:6
    at /home/ubuntu/workspace/shine/node_modules/async/dist/async.js:460:16
    at iteratorCallback (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:1034:13)
    at /home/ubuntu/workspace/shine/node_modules/async/dist/async.js:944:16
    at /home/ubuntu/workspace/shine/node_modules/extract-text-webpack-plugin/index.js:294:13
    at /home/ubuntu/workspace/shine/node_modules/async/dist/async.js:3047:16
    at eachOfArrayLike (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:1039:9)
    at eachOf (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:1087:5)
    at Object.eachLimit (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:3109:3)
    at /home/ubuntu/workspace/shine/node_modules/extract-text-webpack-plugin/index.js:268:11
    at /home/ubuntu/workspace/shine/node_modules/async/dist/async.js:3047:16
    at eachOfArrayLike (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:1039:9)
    at eachOf (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:1087:5)
    at Object.eachLimit (/home/ubuntu/workspace/shine/node_modules/async/dist/async.js:3109:3)
    at ExtractTextPlugin.<anonymous> (/home/ubuntu/workspace/shine/node_modules/extract-text-webpack-plugin/index.js:265:10)
    at Compilation.applyPluginsAsyncSeries (/home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:142:13)
    at Compilation.seal (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:575:8)
    at /home/ubuntu/workspace/shine/node_modules/webpack/lib/Compiler.js:488:16
    at /home/ubuntu/workspace/shine/node_modules/tapable/lib/Tapable.js:225:11
    at done (/home/ubuntu/workspace/shine/node_modules/karma-webpack/node_modules/async/lib/async.js:132:19)
    at /home/ubuntu/workspace/shine/node_modules/karma-webpack/node_modules/async/lib/async.js:32:16
    at Plugin.<anonymous> (/home/ubuntu/workspace/shine/node_modules/karma-webpack/lib/karma-webpack.js:185:7)
    at _addModuleChain (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:477:11)
    at processModuleDependencies.err (/home/ubuntu/workspace/shine/node_modules/webpack/lib/Compilation.js:448:13)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

  errno: -13,
  code: 'EACCES',
  syscall: 'mkdir',
  path: '/_karma_webpack_' }
rake aborted!
Command failed with status (1): [node_modules/.bin/karma start spec/javascr...]
/home/ubuntu/workspace/shine/lib/tasks/karma.rake:5:in `block (2 levels) in <top (required)>'
/home/ubuntu/workspace/shine/lib/tasks/karma.rake:4:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.4.1@global/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => karma
(See full trace by running task with --trace)
Dmfcb_pragsmall
23 Apr 2017, 17:16
David Copeland (467 posts)

thanks for reformatting. I’m not sure what the deal is. I wonder if the radical change in what’s on master for webpacker created a totally different setup that’s harder to deal with?

It seems to want to make a directory named /_karma_webpack_ and I’m not sure why.

This post is super old, but indicates maybe the problem is with Webpack config. When you just run webpack, what happens? e.g. bin/webpack or RAILS_ENV=test bin/webpack.

Generic-user-small
23 Apr 2017, 21:57
Philippe Haussy (13 posts)

Here is webpack’s output.

coreprodev:~/workspace/shine/bin (master) $ ./webpack env.NODE_ENV= test Hash: 5c78141ff3621814a765 Version: webpack 2.4.1 Time: 7763ms Asset Size Chunks Chunk Names customers.js 2.5 MB 0 [emitted] [big] customers angular-test.js 2.42 MB 1 [emitted] [big] angular-test application.js 516 kB 2 [emitted] [big] application manifest-test.json 135 bytes [emitted]
[34] ./~/@angular/core/@angular/core.es5.js 461 kB {0} {1} [built] [53] ./~/@angular/platform-browser/@angular/platform-browser.es5.js 142 kB {0} {1} [built] [68] (webpack)/buildin/global.js 509 bytes {0} {1} {2} [built] [69] ./~/@angular/common/@angular/common.es5.js 131 kB {0} {1} [built] [101] ./~/@angular/compiler/@angular/compiler.es5.js 967 kB {0} {1} [built] [141] ./~/@angular/forms/@angular/forms.es5.js 204 kB {0} {1} [built] [142] ./~/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js 6.09 kB {0} {1} [built] [143] ./~/core-js/index.js 639 bytes {0} {1} [built] [144] ./~/zone.js/dist/zone.js 88.1 kB {0} {1} [built] [357] ./~/@angular/http/@angular/http.es5.js 72.7 kB {0} [built] [358] ./app/javascript/packs/application.css 941 bytes {2} [built] [359] ./~/bootstrap/dist/css/bootstrap.css 883 bytes {2} [built] [360] ./app/javascript/packs/angular-test.js 1.14 kB {1} [built] [361] ./app/javascript/packs/application.js 590 bytes {2} [built] [362] ./app/javascript/packs/customers.js 3.2 kB {0} [built] + 359 hidden modules

WARNING in ./~/@angular/core/@angular/core.es5.js 5870:15-36 Critical dependency: the request of a dependency is an expression

WARNING in ./~/@angular/core/@angular/core.es5.js 5886:15-102 Critical dependency: the request of a dependency is an expression coreprodev:~/workspace/shine/bin (master) $ ~~~

Dmfcb_pragsmall
29 Apr 2017, 15:15
David Copeland (467 posts)

It’s hard to read what you’ve pasted, since you aren’t formatting it properly, but reading back through the thread, you have a different configuration for webpack, including other plugins. If you remove those and use the configuration documented in the book, does that work?

You must be logged in to comment