-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
ionic 2 serve issue #565
Comments
just now upgraded to ionic rc 2.0.0 which has angular 2.0.0 (stable). still getting same error. [12:19:33] Error: Module D:\Tushar\Projects\ionic2Sample\node_modules\angularfi app.module.ts is this something to do with ionic so that i can report there? |
Same error. |
I'm getting the same error. No idea what to do to fix it. |
I get the same error as well. I'm don't know the cause, maybe its the ionic setup maybe it a problem with the way To workaround this for the time being you can (based on ionic beta12): rollup.config.js
This is a copy of the default config, just adding the skip.
Now Now we need to copy the firebase library to the assets library so it's available:
Here I use the original config, no need to rewrite it. and again, adding it to the config section in
change to:
|
Hey, i'm trying to solve the problem with your config, but now i get the following error: Any idea what i can do to solve the problem? |
thank you very much @shlomiassaf , @shlomiassaf ,i think something nasty going with watch script, try to change my code getting below error. then i have to restart ionic serve Running 'serve:before' npm script before serve
|
@chris1308 this is a message not a warning I get that to, you can remove it by supplying globals to rollup. @jtushar53 yes this is a known error forgot to warn about it (: too many error in the app-scripts build, it's new. You can't fix that without some hard changes, you need to open the package and edit bundle.js , comment out the part that assigns cache. The caching can't handle skipped modules in an update. |
Hey, thanks for your help. Anything else i could do? |
thanks @shlomiassaf , you saved my days. i'm assuming it's not angularfire2 issue so closing this issue. |
|
Thanks @shlomiassaf Question would be, is this a temporary hack or something that I will always have to do on all of my angularfire projects in teh future? |
i have this problem and didn't get solution for it..
this is my rollup.config.js
|
opening this issue as i am still getting issues while creating new projects, currently workaround by @shlomiassaf made it work i am ignoring side effects. waiting for angularfire2 team to comment on this |
@jtushar53 no solution for it yet? |
@adirzoari , didn't got any proper solution but you can here https://javebratt.com/ionic2rc0-firebase-angularfire2/ or https://javebratt.com/ionic2rc0-firebase-angularfire2/ I am currently on beta 11 as of now |
I am also have the save problem both in ionic2rc0 and rc1. I used the rollup in package.json. But it can only work in the browser. When I run "ionic build ios", it gives "ngc error" during building and the exported app just freezes in the iOS simulator and mobiles.
Do you have any workaround solution? Thanks! |
I have the same problem... Anyone with an idea? :) |
I used this fix: firebase-browser build issue #24 |
updating to angularfire2 2.0.0-beta.6 and ionic rc2, it is working as expected without rollupconfig.js as ionic rc2 has webpack by default now. |
@dmastag can you please share your solution to @chris1308 error above? What are your values for rollup.config.js globals:{...} I'm getting the same error: [16:18:37] rollup: Treating 'firebase' as external dependency |
Sure @stocks09 , I set it up like this: In package.json, you have to add:
And these are the actual files: As @jtushar53 said though, RC2 is using webpack by default though I prefer rollup since I like to torture myself 😄 |
Thanks @dmastag for sharing your code. I think I like to torture myself too 😄 |
Hello,
Getting below issue while serve with ionic beta 12
[11:53:15] lint finished in 1.72 s
[11:53:19] typescript compiler ready in 5.90 s
[11:53:19] bundle dev started ...
[11:53:27] bundle dev failed: Error: Module D:\Tushar\Projects\ionic-conferenc
e-app\node_modules\angularfire2\node_modules\firebase\firebase-browser.js does n
ot export initializeApp (imported by D:\Tushar\Projects\ionic-conference-app\nod
e_modules\angularfire2\angularfire2.js)
[11:53:27] sass started ...
[11:53:30] sass finished in 2.55 s
anyone know what could be the issue
followed steps from docs
The text was updated successfully, but these errors were encountered: