SpoonX/aurelia-api

Unable to find module with ID: aurelia-api when using Webpack Skeleton and Visual Studio

Closed this issue · 10 comments

I'm sure that there's some sort of workaround at this point, but after several hours of research I'm stumped on how to proceed to resolve this.

I've installed using npm install aurelia-api -- save and see a corresponding entry in my package.json file:

"aurelia-api": "3.1.1" ,

I've added the following to boot.ts:

aurelia.use
.standardConfiguration()
...
.plugin(PLATFORM.moduleName("aurelia-api", (config:any) => {...}))

However, when I run the app I get the following error:

Uncaught (in promise) Error: Unable to find module with ID: aurelia-api
at WebpackLoader. (aurelia-loader-webpack.js:187)
at step (aurelia-loader-webpack.js:36)
...

That's strange. I haven't heard this before. I've asked the question in our gitter channel

Thanks for following up. I'll keep an eye out there and here.

It didn't look like anyone had an idea. Am I right?

I am using the plugin in my webpack app as well, without any errors. Can you provide some more code insight?

@robscottnh yes, basically I am using the webpack typescript sekeleton (no cli project).

Could be:

From our install instructions:

Webpack
Run npm i aurelia-api --save from your project root.

Add 'aurelia-api' in the coreBundles.aurelia section of your webpack.config.js.

Closing this for now. If this is still relevant, feel free to reopen the issue.

Note: this is a copy-paste comment to clean up the issues. It's not personal, and I didn't review the issue before posting this. They're all outdated and I need a way to figure out what's still relevant.

Thank you for understanding :)