@Babel/Runtime generate error with webpack.config.js

#1

Hi again,

Doing the meteor tutorial is giving me a lot of headache.

With a fresh installation of Meteor 1.6.1.3, when I try to run it the console shows:

Error: The @babel/runtime npm package could not be found in your node_modules
W20180620-13:17:22.858(2)? (STDERR) directory. Please run the following command to install it:
W20180620-13:17:22.858(2)? (STDERR)
W20180620-13:17:22.858(2)? (STDERR)   meteor npm install --save @babel/runtime

After install the package the meteor server start without problem but…when I try to run the ionic project that uses the meteor server It starts to shows:

transpile started ...
There was an error in config file "/home/rosunad/projects/protocoloMeteor/webpack.config.js". Using defaults instead.
{ Error: Cannot find module 'webpack'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/rosunad/projects/protocoloMeteor/webpack.config.js:11:15)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3) code: 'MODULE_NOT_FOUND' }
[13:33:45]  typescript: node_modules/@types/meteor/mongo.d.ts, line: 49
            ';' expected.

      L48:  $all?: T[],
      L49:  $elemMatch?: T extends {} ? Query<T> : FieldExpression<T>,
      L50:  $size?: number,

And a lot of info with the same error in almost every line.

Is there any kind of incompatibility between packages? I don’t find any documentation about it

Thanks in advance

#2

Which Meteor tutorial is this?

I can’t think of any that use webpack.

#3

This one:

https://angular-meteor.com/tutorials/whatsapp2/ionic/setup

#4

Hmm. Perhaps ping @Urigo - he should be able to help :slight_smile: