These are chat archives for brunch/brunch

17th
Aug 2017
BONNAURE Olivier
@solisoft
Aug 17 2017 14:34 UTC
Hi there, I have a vueJS app which works fine locally but raise an error on dist
Uncaught Error: Cannot find module 'babel-runtime/core-js/json/stringify' from 'components/signin.vue'
anyone got this issue before
es2015 & babel
Yves Lange
@yveslange
Aug 17 2017 14:35 UTC
Did you installed the npm dependencies correctly ?
BONNAURE Olivier
@solisoft
Aug 17 2017 14:35 UTC
I think so
maybe moving to es2016 will fix it?
Yves Lange
@yveslange
Aug 17 2017 14:38 UTC
A dependency seems to be missing in components/signin.vue
BONNAURE Olivier
@solisoft
Aug 17 2017 14:39 UTC
yes I saw this Uncaught Error: Cannot find module 'babel-runtime/core-js/json/stringify' from 'components/signin.vue'
but I don't really kmow how to include it
Yves Lange
@yveslange
Aug 17 2017 14:39 UTC
Normally you should simply do 'npm install' somewhere.
BONNAURE Olivier
@solisoft
Aug 17 2017 14:40 UTC
node_modules/babel-runtime/core-js/json/stringify.js exists in my path though
Yves Lange
@yveslange
Aug 17 2017 14:41 UTC
Try to rename node_modules to components
BONNAURE Olivier
@solisoft
Aug 17 2017 14:42 UTC
mmh not sure it's a good idea
Yves Lange
@yveslange
Aug 17 2017 14:43 UTC
Just to test if it works. Then you will need to find why it's not working with node_modules
BONNAURE Olivier
@solisoft
Aug 17 2017 15:11 UTC
it was a babel issue ... I removed it and mow it's ok
Yves Lange
@yveslange
Aug 17 2017 15:13 UTC
:+1: