creativetimofficial / vue-light-bootstrap-dashboard

Vue Light Bootstrap Dashboard - FREE BOOTSTRAP 4 VUEJS ADMIN TEMPLATE
https://www.creative-tim.com/product/vue-light-bootstrap-dashboard
MIT License
772 stars 676 forks source link

Deployment error, Cannot find module "X" #27

Closed bakuryuthem0 closed 1 year ago

bakuryuthem0 commented 5 years ago

I am trying to test the project in a heroku or scalingo app, but in both services i get an error while it build.

Cannot find module chalk,

The problem is that if i put chalk in the dependencies of package.json then the error persist but with another dependencies like

Cannot find module opn or Cannot find module express but all of these are in devDependencies

I have not touched the default build of the project, just installed some aditional dependencies.

this is the log on scalingo build

` <-- Start deployment of erp-web --> Fetching source code -----> Creating runtime environment

   NPM_CONFIG_LOGLEVEL=error
   NPM_CONFIG_PRODUCTION=true
   NODE_VERBOSE=false
   NODE_ENV=production
   NODE_MODULES_CACHE=true

-----> Installing binaries engines.node (package.json): >= 4.0.0 engines.npm (package.json): >= 3.0.0

   Resolving node version >= 4.0.0...
   Downloading and installing node 11.8.0...
   Bootstrapping npm >= 3.0.0 (replacing 6.5.0)...
   npm 6.7.0 installed

-----> Restoring cache Skipping cache restore (not-found) -----> Building dependencies Installing node modules (package.json + package-lock) added 82 packages from 60 contributors and audited 9353 packages in 4.024s found 15 vulnerabilities (10 low, 1 moderate, 3 high, 1 critical) run npm audit fix to fix them, or npm audit for details Running build

   > vue-light-bootstrap-dashboard@1.0.0 build /build/af2e373b-92c5-4880-88f6-6bdeed04cea0
   > node build/build.js

internal/modules/cjs/loader.js:613 throw err; ^e: Error: Cannot find module 'chalk' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:611:15) at Function.Module._load (internal/modules/cjs/loader.js:537:25) at Module.require (internal/modules/cjs/loader.js:665:17) at require (internal/modules/cjs/helpers.js:20:18) at Object. (/build/af2e373b-92c5-4880-88f6-6bdeed04cea0/build/check-versions.js:1:75) at Module._compile (internal/modules/cjs/loader.js:736:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:747:10) at Module.load (internal/modules/cjs/loader.js:628:32) at tryModuleLoad (internal/modules/cjs/loader.js:568:12) at Function.Module._load (internal/modules/cjs/loader.js:560:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! vue-light-bootstrap-dashboard@1.0.0 build: node build/build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vue-light-bootstrap-dashboard@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /tmp/npmcache.ZotDd/_logs/2019-01-28T18_28_13_175Z-debug.log -----> Build failed ` Am i missing something?