-
Notifications
You must be signed in to change notification settings - Fork 130
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
ui-router-react fails with Rollup #33
Comments
Hi, Unfortunately the only way to fix it is to change the way we import
Sorry for the inconvenience, I'll change the import for next version and do some tests with a Rollup setup ;) |
Interesting. We're using Rollup to bundle angular-ui-router which should be nearly the same, right? |
Don't know as I am not using that one at the moment---I did have success using Rollup to bundle ui-router for angular 2, both for JIT and AOT mode. But no joy for the React version and Rollup. |
Tried bundling ui-router-react, got the error:
rollup.config.js:
|
Here's an issue reported for "classnames" + typescript + synthetic default + webpack microsoft/TypeScript#7518 (comment)
It appears that this might be a webpack thing? |
So, I'm trying to find out the problem. It looks like TS wants the On the other hand, rollup doesn't like that syntax (as pointed out here rollup/rollup#670) hence the problem. A solution would probably be to add babel and let it transpile the export in the modules, but I don't like it as we don't need babel. I guess the "magic" solution works for now, and we'll change it accordingly once we'll find a better solution. |
When attempting to bundle a React app that uses ui-router-react I get a zillion complaints from Rollup along the lines of
Error: Cannot call a namespace ('classNames')
Based on similar errors I see documented for Rollup...
The text was updated successfully, but these errors were encountered: