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
meteor-angular2 Cannot find module #1545
Comments
@PopPushOut |
@dotansimha Here is routing used in original ng2-admin-akveo template, I modified it.
In angular-meteor project I couldn't used that kind of routing because I couldn't understand where from that System came from, so changed to:
But it doesn't to work. Got compiler errors that System is not defined. Tried to google around, found that there is meteor systemjs package, tried to install one, but then got error with _metadata..
I searched webpack package for meteor, but find it is not supported anymore, so I cannot make similiar structure like it was in original ng2 template, here is the template I am trying to implement: If you have a time to go deeper into this problem, please download the project from: |
I have the same issue it probably because angular2 use Webpack there is a lazy route loader package for native angular2 to perform lazy load and it not working on meteor the second problem is that the meteor webpack package work only for the meteor 1.2 and 1.3 versions you can ask for more information at this issue |
@tuxado are you get any hacks to solve the lazy load on meteor, i'm stuck on this 3 days ago. ? |
No i am not sur that there are a hacks to solve the lazy load on meteor version 1.4, the only thing i know you can use meteor version 1.3 and the webpack 2 package from the atmosphrejs compatible with meteor 1.2 or 1.3 or using this package flynn: webpack-angular2 but there are some limitation on meteor 1.3 with angular 2 and the final result it will be ugly (outdated) if you like using meteor 1.4 with angular 2 try use native routing without lazy load and import all sub routes modules on the main app ngmodule and wait a new releases of meteor or packages compatible with webpack |
closing due to inactivity and cleanup after tons of new updates in the recent month. |
This still exists, struggling to lazy load angular modules but getting same System is not defined |
Good evening,
Past few days I was moving https://github.com/akveo/ng2-admin template on meteor base.
This might be useful for all meteor fans at some stage in their career, quite cool template.
I skip some .ts and many packages that I do no need, like webpack and electron. After fixing compiler errors I launched the project.
Here is the console:
But then I inspect my project in web browser I get these errors:
What I tried:
It seems okay, although I am not very familiar with typescript and moving big projects on another base.
I would be glad if you guys can run my project and check what could be done.
My Project git URL:
https://github.com/PopPushOut/Meteor-angular-ng2-akveo
to run the project:
Extra information:
Current node version I use: 6.9.1 and npm version: 3.10.9
Info about template structure to navigate faster:
https://akveo.github.io/ng2-admin/articles/012-project-structure/
This is original template made with angular2 CLI.
My project doesn't use all folders for example:
config( I do not use electron and webpack to make it easier), tslint.ts, typedoc and environment.ts everything else should be used.
If you need something else, please contact me any time.
Thank you!
The text was updated successfully, but these errors were encountered: