我正在尝试使用 vue.js 应用程序将 primevue 添加到我的 jhister 中。我正在遵循这些步骤。
1-运行这些评论
npm install primevue --save
npm install primeicons --save
2-将它们添加到我的 vendor.scss
@import '~primevue/resources/primevue.min.css';
@import '~primevue/resources/themes/nova-light/theme.css';
@import '~primeicons/primeicons.css';
3-当我运行 npm start 命令时。我收到这些错误。
ERROR in ./src/main/webapp/content/scss/vendor.scss (./node_modules/css-loader/dist/cjs.js??ref--9-1!./node_modules/postcss-loader/src??ref--9-2!./
node_modules/sass-loader/lib/loader.js??ref--9-3!./src/main/webapp/content/scss/vendor.scss)
Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: Failed to find 'node_modules/primevue/resources/primevue.min.css'
in [
C:\work\workspace\aymer workspace\fiyatkolay\fiyatkolayweb\src\main\webapp\content\scss
]
at resolveModule.catch.catch (C:\work\workspace\aymer workspace\fiyatkolay\fiyatkolayweb\node_modules\postcss-import\lib\resolve-id.js:35:13)
@ ./src/main/webapp/content/scss/vendor.scss 4:14-231 14:3-18:5 15:22-239
@ ./src/main/webapp/app/main.ts
@ multi (webpack)-dev-server/client?http://localhost:9060 ./src/main/webapp/app/main.ts
如何将 Primevue 与我的 jhipster 应用程序集成。谢谢您的帮助!!!