jedwards1211 / meteor-imports-webpack-plugin

Webpack plugin to import and use Meteor packages like if they were real NPM packages.
MIT License
25 stars 10 forks source link

You need to specify 'imports-loader' instead of 'imports' #26

Open dobesv opened 6 years ago

dobesv commented 6 years ago

When I try to use this plugin, webpack gives me this complaint:

Module not found: Error: Can't resolve 'imports' in '/home/ubuntu/app'
BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders.
                 You need to specify 'imports-loader' instead of 'imports',
                 see https://webpack.js.org/guides/migrating/#automatic-loader-module-name-extension-removed

Best guess is it is complaining about this:

      {
        meteorImports: true,
        test: new RegExp('.meteor/local/build/programs/web.browser/packages'),
        loader: 'imports?this=>window',
      },
staeke commented 6 years ago

Hi @dobesv I've fixed this some time ago in another branch. I'll try and take some time this week to see if I can get some new fixes in

gustawdaniel commented 4 years ago

I have the same error.