Running npm install fails with an error complaining that node module crypto-js/aes cannot be found.
As a consequence, building the docker image fails as well.
Additional information
I could verify that multiple versions of crypto-js have been installed:
find node_modules -name crypto-js
node_modules/parse/node_modules/crypto-js
node_modules/parse-server/node_modules/parse/node_modules/crypto-js
I further verified, that both parse-server and Parse-SDK-JS can be built from source.
Temporary workaround
Running npm dedupe will fix the problem, but I consider this only a temporary workaround. To work on this project, following the instructions in CONTRIBUTING.md, a simple npm install should just work.
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Dashboard!
Environment Setup
- macOS 10.15.5 (Catalina)
- zsh 5.7.1 (x86_64-apple-darwin19.0)
- node 12.13.0
- npm 6.14.5
Steps to reproduce
- clone repository:
git clone https://github.com/ParsePlatform/parse-dashboard
- install dependencies:
npm install
Logs/Trace
See attached out.log for the full output of stderr and stout combined. Here's the interesting part:
...
> parse-dashboard@2.1.0 prepare /Users/lauk/coding/opensource/parse-dashboard
> webpack --config webpack/publish.config.js --progress
...
ERROR in ../node_modules/parse/lib/browser/CryptoController.js
Module not found: Error: Can't resolve 'crypto-js/aes' in '/Users/lauk/coding/opensource/parse-dashboard/node_modules/parse/lib/browser'
@ ../node_modules/parse/lib/browser/CryptoController.js 9:6-30
@ ../node_modules/parse/lib/browser/Parse.js
@ ../node_modules/parse/index.js
@ ./lib/ParseApp.js
@ ./dashboard/Dashboard.js
@ ./dashboard/index.js
ERROR in ../node_modules/parse/lib/browser/CryptoController.js
Module not found: Error: Can't resolve 'crypto-js/enc-utf8' in '/Users/lauk/coding/opensource/parse-dashboard/node_modules/parse/lib/browser'
@ ../node_modules/parse/lib/browser/CryptoController.js 10:6-35
@ ../node_modules/parse/lib/browser/Parse.js
@ ../node_modules/parse/index.js
@ ./lib/ParseApp.js
@ ./dashboard/Dashboard.js
@ ./dashboard/index.js
Running
npm installfails with an error complaining that node modulecrypto-js/aescannot be found.As a consequence, building the docker image fails as well.
Additional information
I could verify that multiple versions of
crypto-jshave been installed:I further verified, that both
parse-serverandParse-SDK-JScan be built from source.Temporary workaround
Running
npm dedupewill fix the problem, but I consider this only a temporary workaround. To work on this project, following the instructions inCONTRIBUTING.md, a simplenpm installshould just work.Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Dashboard!
You're
runningbuilding version >=1.0.23 of Parse Dashboard.(trying to build master revision, i.e. f04d507 )
You're running version >=2.3.2 of Parse Server.(does not apply; this is a build time issue, not a runtime issue)
You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
Steps to reproduce
git clone https://github.com/ParsePlatform/parse-dashboardnpm installLogs/Trace
See attached out.log for the full output of stderr and stout combined. Here's the interesting part: