Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aurelia-loader-webpack fails to find aurelia-syncfusion-bridge/grid/grid when aurelia-syncfusion-bridge is not in main bundle #78

Closed
MrBliz opened this issue Oct 5, 2017 · 3 comments
Assignees

Comments

@MrBliz
Copy link

MrBliz commented Oct 5, 2017

When aurelia-syncfusion bridge is placed in 'vendor' bundle and loaded via the ModuleDependenciesPlugin it fails at runtime with the following error.

aurelia-loader-webpack.js:187 Uncaught (in promise) Error: Unable to find module with ID: aurelia-syncfusion-bridge/grid/grid at WebpackLoader.<anonymous> (aurelia-loader-webpack.js:187) at step (aurelia-loader-webpack.js:36) at Object.next (aurelia-loader-webpack.js:17) at aurelia-loader-webpack.js:11 at new Promise (<anonymous>) at 43.__awaiter (aurelia-loader-webpack.js:7) at WebpackLoader.43.WebpackLoader._import (aurelia-loader-webpack.js:152) at WebpackLoader.<anonymous> (aurelia-loader-webpack.js:252) at step (aurelia-loader-webpack.js:36) at Object.next (aurelia-loader-webpack.js:17)

Reproducible example here

https://github.com/MrBliz/aurelia-syncfusion-dotnet/tree/e284f9b10342e42e92a8e405737b67288dfa6796

@karthickthangasamy
Copy link
Contributor

@MrBliz Thanks for your interest in Syncfusion Products.

We are able to reproduce the issue at our end. We will investigate and provide you further details as much as earlier.

Thanks.

@karthickthangasamy
Copy link
Contributor

karthickthangasamy commented Oct 11, 2017

@MrBliz Thanks for your patience.

The issue resolved with the below configuration in webpack.config.vendor.js file.

new AureliaPlugin({ aureliaApp: undefined })

You can refer the changes from here.

Sample

You have to run node node_modules/webpack/bin/webpack.js --config webpack.config.vendor.js for bundling the aurelia-syncfusion-bridge into vendor bundle.

Thanks.!!

@karthickthangasamy karthickthangasamy self-assigned this Oct 11, 2017
@MrBliz
Copy link
Author

MrBliz commented Oct 11, 2017

@karthickthangasamy Fantastic, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants