superset icon indicating copy to clipboard operation
superset copied to clipboard

`npm run dev` in caravel/caravel/assets throws error

Open shkr opened this issue 10 years ago • 4 comments

I cloned the caravel repository. I installed npm as prescribed in Contributing.md. Then after the required steps, I ran npm run dev to run the local caravel installation.

I see an error log in the console


ERROR in ./javascripts/caravel-select2.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../node_modules/jquery-ui/themes/base/jquery-ui.css in /Users/shashank/Documents/repositories/caravel/caravel/assets/javascripts
 @ ./javascripts/caravel-select2.js 5:0-62

shkr avatar Jul 26 '16 07:07 shkr

Hmm, do you have the latest version of master? This seems to be a duplicate of https://github.com/airbnb/caravel/issues/768 and should have been fixed.

Try uninstalling jquery-ui and re-rerunning npm install to get the correct build version.

georgeke avatar Jul 27 '16 05:07 georgeke

@shkr is this fixed for you? If so please close the issue, thanks.

xrmx avatar Aug 08 '16 19:08 xrmx

The error still persists. I had to do rm -rf /node_modules/jquery-ui and then npm i [email protected] --save as given in the previous thread.

kusumakarb avatar Aug 10 '16 08:08 kusumakarb

@kusumakarb with a fresh master npm install correctly install [email protected] here.

xrmx avatar Aug 10 '16 09:08 xrmx