I'm submitting a bug report
Please tell us about your environment:
- JSPM OR Webpack AND Version
webpack 4.16.5
- Browser:
all
- Language:
TypeScript 3.01
Current behavior:
When directing to html templates as module id in routes:
routes = [{ moduleId: PLATFORM.moduleName('foo.html'), }]
this._import(moduleId, defaultHMR) in method loadModule in WebpackLoader returns rejected promise with value Error: Unable to find module with ID: ./foo.html at WebpackLoader
Expected/desired behavior:
- What is the expected behavior?
Everything works correctly if .html suffix is omited and new file foo.ts with empty class inside it is created.
According to feature aurelia/templating-router#25 using only html views should work. Implementation of this feature was done by dynamically creation empty of class and it seems that loader is not aware of it happening.
I'm submitting a bug report
2.2.1
Please tell us about your environment:
Operating System:
Windows 8.1
Node Version:
10.8.0
6.2.0
webpack 4.16.5
all
TypeScript 3.01
Current behavior:
When directing to html templates as module id in routes:
routes = [{ moduleId: PLATFORM.moduleName('foo.html'), }]this._import(moduleId, defaultHMR)in methodloadModuleinWebpackLoaderreturns rejected promise with valueError: Unable to find module with ID: ./foo.html at WebpackLoaderExpected/desired behavior:
Everything works correctly if
.htmlsuffix is omited and new file foo.ts with empty class inside it is created.According to feature aurelia/templating-router#25 using only html views should work. Implementation of this feature was done by dynamically creation empty of class and it seems that loader is not aware of it happening.