Cannot find module '/node_modules/quasar-framework/dist/quasar.mat.common.js'
Closed this issue · 3 comments
thearabbit commented
mwarren2 commented
Did you call
npm run transpile
?
Presumably you have your own project by now, so you will need to:
- make sure you have
.babelrc.RENAMED
from the quasar-template-meteor project - copy to your package.json the new 'transpile' line in package.json in quasar-template-meteor project, which is like this:
"transpile": "mv './.babelrc.RENAMED' './.babelrc'; babel node_modules/quasar-framework/dist/quasar.ios.esm.js --out-file node_modules/quasar-framework/dist/quasar.ios.common.js; babel node_modules/quasar-framework/dist/quasar.mat.esm.js --out-file node_modules/quasar-framework/dist/quasar.mat.common.js;mv './.babelrc' './.babelrc.RENAMED'"
Then run npm run transpile
.
It has changed because quasar have split the .js files into two files, one for 'ios', and one for 'mat' -
(material design - Android).
And if you want to compile for ios you will have to change imports
in your code from 'quasar.mat.common.js' to 'quasar.ios.common.js'.
Hope this is all clear.
I shall change the Read.ME to make this clearer.
thearabbit commented
Thanks I will check readme again
thearabbit commented
Now it work fine
👍