akveo / akveo/ng2-smart-table

error prod compilation with jhipster

Đang mở
#942 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
1.6k
Fork
867
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi,

I use Jhipster and the very beautiful ng2-smart-table module ;)

When I try to compile with dev profile it's working. But when I want to compile with production profile, I have an error with ng2-smart-table module.

C:\dev\test>npm run webpack -- --config webpack/webpack.prod.js --profile

> test@2.0.5 webpack C:\dev\test
> node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js "--config" "webpack/webpack.prod.js" "--profile"

(node:13472) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
Hash: 5eed0bae71922c9ba9fb
Version: webpack 4.25.1
Time: 7878ms
Built at: 2019-01-29 11:45:36
13 assets
Entrypoint polyfills = app/polyfills.5eed0bae71922c9ba9fb.bundle.js
Entrypoint global = global.f6616ee21f41e5d1acb4.css app/global.5eed0bae71922c9ba9fb.bundle.js
Entrypoint main = app/main.5eed0bae71922c9ba9fb.bundle.js
[0] ./src/main/webapp/app/polyfills.ts 0 bytes {2} [built]
factory:6931ms building:25ms = 6956ms
[1] ./src/main/webapp/content/scss/global.scss 39 bytes {0} [built]
factory:5719ms building:1619ms = 7338ms
[3] ./src/main/webapp/app/app.main.ts 0 bytes {1} [built]
factory:6932ms building:25ms = 6957ms
+ 1 hidden module

ERROR in Module build failed (from ./node_modules/sass-loader/lib/loader.js):

undefined
^
Expected selector.
stdin 3:5 root stylesheet
in C:\dev\test\node_modules\ng2-smart-table\components\filter\filter.component.scss (line 3, column 5)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! test@2.0.5 webpack: `node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js "--config" "webpack/webpack.prod.js" "--profile"`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the test@2.0.5 webpack script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

So, I have the same Deprecated message like https://stackoverflow.com/questions/52430083/jhipster-is-producing-error-while-building-for-production but I undertand this message could be ignore.
This is a bug because it's not possible to compile with production environment but only with dev environment.

Could you fix this or put a possibility to ignore this in compilation ?

Thanks

Jim

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.