我正在尝试将PrimeVue添加到我的Vue.js应用程序中,并遵循以下步骤:
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应用程序中。
谢谢您的帮助!!!