tochoromero / aurelia-table

Simple functional data table for Aurelia
https://tochoromero.github.com/aurelia-table
MIT License
67 stars 25 forks source link

Error when used in webpack #38

Closed raskolnikoov closed 6 years ago

raskolnikoov commented 6 years ago

I can't seem to load the plugin when using webpack as my app-bundler.

These are my configs:

webpack.config.js

module.exports = {
  entry: {
    'aurelia': ['aurelia-bootstrapper', 'au-table']
  }
}....

main.js aurelia.use.plugin(PLATFORM.moduleName('au-table'));

The error I get upon app-startup

Error: Unable to find module with ID: au-table/au-table at WebpackLoader. (http://localhost:3000/app.js:11943:35) at step (http://localhost:3000/app.js:11792:23) at Object.next (http://localhost:3000/app.js:11773:53) at http://localhost:3000/app.js:11767:71 at webpackJsonp.464.__awaiter (http://localhost:3000/app.js:11763:12) at WebpackLoader.webpackJsonp.464.WebpackLoader._import (http://localhost:3000/app.js:11908:16) at WebpackLoader. (http://localhost:3000/app.js:12008:44) at step (http://localhost:3000/app.js:11792:23) at Object.next (http://localhost:3000/app.js:11773:53) at http://localhost:3000/app.js:11767:71

Using webpack@3.3.0 and latest aurelia version.

raskolnikoov commented 6 years ago

Nice! When will a new npm be available? :)

tochoromero commented 6 years ago

Now :)

raskolnikoov commented 6 years ago

Thanks! Works great! :)