-
Notifications
You must be signed in to change notification settings - Fork 851
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
Strange issue when using webpack 2 #957
Comments
@faceleg have you been able to resolve that issue? I'm upgrading an AngularJS 1.5 app to Webpack 2 and see a |
@richtmat no I gave up and have been using webpack 1. Very interested in a solution though |
I think this might actually be related to On your Since we'll still need a prefix, I'm messing around with having a loader/test block for my app and a separate block for node_modules. |
@mheppner unfortunately, for me it does not change a thing (here and #969). Only difference is that local templates are wrong as well. The url ending on As I said in #969 , I put the template content of the bundle in my files. The templates are put into the cache like this: |
Up, same error here |
Yo, I was able to solve this by changing how I import ng-table into my project. Importing directly from the bundle fixed it for me:
|
Works great: import 'ng-table/bundles/ng-table'; |
Same problema here. When importing like
then the header and footer are not bundled resulting in a HTTP 404. Changing the import to
solves the header/footer problem but there's a glitch missing: the ^ and v sorting indicators are not shown. Sorting happens but there is no visual indication. Any ideas? |
@sargue This is a few months late, but I myself ran into the same problem with the sorting ^ and v not showing. Add
:) |
Thanks @jheimbouch , I can't try it because I'm no longer working on that project. But thanks anyway, I may be useful for somebody else. |
I was able to get the HTML files compiling properly with Webpack by putting the following in my webpack.config.js: module: {
rules: [
// ...
{ test: /ng-table\/.*\.html$/, use: ['ngtemplate-loader?requireAngular&relativeTo=/src/browser/&prefix=ng-table/', 'html-loader'] }
]
} This also requires the NPM packages |
Trying to upgrade to webpack 2, my build fails with the following error:
Importing library (fails):
Requiring bundle (success):
webpack config:
The text was updated successfully, but these errors were encountered: