angular-cli: Primeng/Primeui webpack Module parse failed Unexpected character
Error on adding primeng/primeui to a angular-cli webpack project
-
OS? Linux 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
-
Versions. Please run
ng --version
. If there’s nothing outputted, please run in a Terminal:node --version
and paste the result here: angular-cli: local (v1.0.0-beta.11-webpack.2, branch: master) node: 6.4.0 os: linux x64git log
on local angular-cli clone: latest master commit is: commit 1f4c6fe3e5ac6812f1c40850a086f54b7b698ae3 Author: Mike Brocchi mbrocchi@gmail.com Date: Mon Aug 29 00:05:32 2016 -0400feat(feature): add ability to generate feature modules (#1867)
-
Repro steps. Was this an app that wasn’t created using the CLI? What change did you do on your code? etc. added primeng to a project: npm install --save primeng primeui added
"../node_modules/primeui/themes/omega/theme.css", "../node_modules/font-awesome/css/font-awesome.min.css", "../node_modules/primeui/primeui-ng-all.min.css"
to apps[0].styles ng build -
The log given by the failure. Normally this include a stack trace and some more information.
ERROR in ./~/primeui/images/loadingbar.gif
Module parse failed: <PROJECT_PATH>/node_modules/primeui/images/loadingbar.gif Unexpected character '�' (1:6)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
@ <CLI_CLONE_PATH>/angular-cli/~/css-loader!<CLI_CLONE_PATH>/angular-cli/~/postcss-loader!./~/primeui/primeui-ng-all.min.css 6:16675-16709
@ ./~/primeui/primeui-ng-all.min.css
@ multi styles
ERROR in ./~/primeui/images/loading.gif
Module parse failed: <PROJECT_PATH>/node_modules/primeui/images/loading.gif Unexpected character '' (1:7)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
@ <CLI_CLONE_PATH>/angular-cli/~/css-loader!<CLI_CLONE_PATH>/angular-cli/~/postcss-loader!./~/primeui/primeui-ng-all.min.css 6:32505-32536
@ ./~/primeui/primeui-ng-all.min.css
@ multi styles
Just ask if any more information is required!
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 23 (14 by maintainers)
Commits related to this issue
- fix: add loader for gif (#2066) add loader to support loading of gif images Closes #1878 — committed to angular/angular-cli by FallenRiteMonk 8 years ago
I filed this same issue against the primeng/primeui github project here