Comments (4)
@FENGLICHAO we have 'postcss-import' in our dependencies. Do you have all required packages ?
from vue2-perfect-scrollbar.
For some reason it didn't installed this dependency here too. I installed the package using this command:
npm i -S vue2-perfect-scrollbar
Then, to fix the issue I installed the missing dependency:
npm i -SD postcss-import
from vue2-perfect-scrollbar.
@mercs600 not sure if it's an NPM bug, but same issue, npm i vue2-perfect-scrollbar
doesn't seem to pull down that dependency :/
from vue2-perfect-scrollbar.
Just ran into the same thing on build (during development it worked fine):
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: Cannot find module 'postcss-import'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/breadadams/dev/projectname/node_modules/vue2-perfect-scrollbar/postcss.config.js:2:21)
at Module._compile (module.js:652:30)
at requireFromString (/Users/breadadams/dev/projectname/node_modules/require-from-string/index.js:28:4)
at parseJsFile (/Users/breadadams/dev/projectname/node_modules/postcss-load-config/node_modules/cosmiconfig/dist/loadJs.js:15:15)
at <anonymous>
at runLoaders (/Users/breadadams/dev/projectname/node_modules/webpack/lib/NormalModule.js:301:20)
at /Users/breadadams/dev/projectname/node_modules/loader-runner/lib/LoaderRunner.js:364:11
at /Users/breadadams/dev/projectname/node_modules/loader-runner/lib/LoaderRunner.js:230:18
at context.callback (/Users/breadadams/dev/projectname/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at Promise.resolve.then.then.catch (/Users/breadadams/dev/projectname/node_modules/postcss-loader/src/index.js:208:9)
at <anonymous>
@ ./src/main.js 23:0-26
@ ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
The reason NPM isn't installing that dependency with the library is because it's marked as a devDependency, the solution would be to move it to dependencies
.
from vue2-perfect-scrollbar.
Related Issues (20)
- How to disable horizontal scroll HOT 1
- Problem when I try to build (Module build failed: TypeError: css.eachInside is not a function) HOT 1
- Infinite scrolling when box with border HOT 2
- Scroll on the x axis keeps showing up! HOT 10
- How to integrate into a sidebar nav/menu? HOT 1
- Unable to preventDefault inside passive event HOT 1
- Unable to scroll over an iframe HOT 1
- Vue 3 Support HOT 6
- How can I set the scroll automatically to the end when there is new cards loaded? HOT 2
- Validation problems
- It doesn't scroll using any external magic keyboard HOT 4
- Trouble scrolling up in android version of Firefox HOT 1
- Scrollbar is still showing HOT 1
- Possibility to always show scrollbar (not only on hover) HOT 1
- Bug : The scroll bar can extend infinitely,how can i fix it? HOT 1
- Throwing errors on touch move
- Classes of child DOM elements are not updated HOT 1
- Fix Inefficient Regular Expression Complexity HOT 1
- cssnano dependency with vulnerabilities HOT 2
- new version 1.5.56 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue2-perfect-scrollbar.