aurelia / webpack-plugin

A plugin for webpack that enables bundling Aurelia applications.
MIT License
90 stars 36 forks source link

No view model found in module #171

Closed elitastic closed 3 years ago

elitastic commented 3 years ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior: Everything working fine in modes "development" and "none" of webpack. When changing mode to production (also when removing mode option) I get the following error:

No view model found in module "path/to/my-module". It does not matter whether it is relative or absolute path, it does not work in either case.

Expected/desired behavior: Would expect to work in development and production mode.

bigopon commented 3 years ago

@elitastic can you help with a small repro? Or at least how the structure looks like? Another Q: is there any signal to retrieve such module like PLATFORM.moduleName?