quasarframework/quasar-template-meteor

Cannot find module '/node_modules/quasar-framework/dist/quasar.mat.common.js'

Closed this issue · 3 comments

After pull last, and update npm and meteor.
Get error

image

Did you call
npm run transpile?

Presumably you have your own project by now, so you will need to:

  1. make sure you have .babelrc.RENAMED from the quasar-template-meteor project
  2. 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.

Thanks I will check readme again

Now it work fine
👍