Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Angular and Styles #77

Closed
cheng93 opened this issue May 16, 2019 · 2 comments
Closed

Angular and Styles #77

cheng93 opened this issue May 16, 2019 · 2 comments

Comments

@cheng93
Copy link

cheng93 commented May 16, 2019

  • Operating System: Windows 10
  • Node Version: 10.15.1
  • NPM Version: 6.7.0
  • webpack Version: see below
  • raw-loader Version: see below

Expected Behavior

webpack is successful

Actual Behavior

webpack is not successful

Code

webpack and raw-loader version are in repo

https://github.com/cheng93/raw-loader-issue

ERROR in Expected 'styles' to be an array of strings.

10 silly lifecycle [email protected]~build: Args: [ '/d /s /c', 'webpack --mode=development' ]
11 silly lifecycle [email protected]~build: Returned: code: 2  signal: null
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: `webpack --mode=development`
13 verbose stack Exit status 2
13 verbose stack     at EventEmitter.<anonymous> (C:\Users\dev\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:189:13)
13 verbose stack     at ChildProcess.<anonymous> (C:\Users\dev\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:189:13)
13 verbose stack     at maybeClose (internal/child_process.js:970:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\code\cheng93\raw-loader-issue
16 verbose Windows_NT 10.0.17763
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\dev\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
18 verbose node v10.15.1
19 verbose npm  v6.7.0
20 error code ELIFECYCLE
21 error errno 2
22 error [email protected] build: `webpack --mode=development`
22 error Exit status 2
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]
@alexander-akait
Copy link
Member

Please open issue in @ngtools/webpack, we start migrate on import/export in some loaders/plugins, so it should be fixed in other plugins/loaders too, we can't do something on our side

@thw0rted
Copy link

This actually isn't limited to the CLI, it impacts both the dynamic and AOT compilers. I'll try to put together a simple repro for an Angular issue tomorrow. I'm worried that I'm doing something wrong, though, since raw-loader v2 has been out for months and I don't see that much discussion of the problem.

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

No branches or pull requests

3 participants