-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Issues upgrading to angular v9 #2174
Comments
I believe this might be related to 2.0 theme. Is it possible to use I'm going to loop in @crowmagnumb - I believe you had seen this recently; when possible mind sharing what conclusions you found? |
I switched from |
Tihe problem for me is a change in the
... which causes the problem, if you revert it back to what it was in a recent previous release ...
... then it works fine. I submitted an issue to that repo. |
I was able to reproduce the first bug (where the component doesn't show up) here It happens when I run with the My project is a code-sharing project with the ns schematics later so that's how I repro'd the bug, I'm not sure if this will happen with just ns-angular. I didn't actually do anything with the angular part, however, so it probably won't even run correctly. edit: I also included the log output after the node modules were installed, since there's a very curious error in there |
@crowmagnumb unfortunately on my original app that doesn't solve the undefined prints in the bundle.js (which i can try to repro if needed) |
Just checking, did you notice there were two sections, one for if you use css and the other for scss? You need to change the correct one (or both I suppose). |
@cdmistman Oh, I also had the first problem too in one of my apps and I had to turn off buildOptimizer in the angular.json file (set it to false). It was a VERY complicated issue that I couldn't quite nail down to what was causing it so I havn't reported it as an issue yet. But on a lark I tried turning off the above parameter and it magically worked. I would be interested if that works for you here too. |
@crowmagnumb thank you so much for helping! I tried disabling the buildOptimizer flag in angular.json, unfortunately it doesn't work in the original app. I tried it with and without the css loader fix you suggested |
Ugh sorry. This stuff is so frustrating because it can be so many things and it just keeps us from actually coding. I'm sorry. :( |
@crowmagnumb @cdmistman I'm going to look into this 👍 I'll start with the sample project posted by Ken above. |
Same issue here. My code sharing app after migrating to ng 9 is not working since April. The same issue with "undefined" miessages in build.js. Tried with buildOptimizer: false also as above. It would be great to get any example (even simplest) of code sharing app. If of course there is any working example.. My 'closed' issue: #2152 |
I have a repot here that you can see working. It is SUPER bare-bones. You can compare with yours, play with it, fork it, add to it, whatever. I would be very happy to make this a repo for which we can easily demonstrate issues with NS as they arise. |
Great news @crowmagnumb. Thx for sharing, I added one issue to your repo, because I can't run it https://github.com/animalus/shared-lib-example/issues/1 Maybe is there any option to share sandbox for not libraries? Just web/mobile app? Just ask ;) |
Oops. Sorry. @Arystosedes. I think I fixed it. |
Hi I have the same error for both Android and iOS... when I run
Then i ran
Then I went to the node_modules folder path:
And found what is causing the issue... there is a
And a lot of variables starting with underscores... So how do I fix this? do I delete that |
I have the same errors.. :(. |
The We just helped unblock another project and can reference this PR as similar things could be at play in your projects: |
Okay cool, thanks... I will try email with the project. |
same |
@cdmistman @crowmagnumb We have identified the cause of However I wouldn't recommend trying to update your projects to these just yet (we are confirming against several internal projects ourselves with these alpha's and rc versions) as we are working on an Angular 10 blog post with instructions on how to update to the very latest of everything by next week. I will post back here once the blog is out which provides clear instructions on how to use the latest versions containing all the fixes. |
@NathanWalker I am facing some issues related to webpack and compiling the project in NS and Angular shared project. I mentioned the details and some fixes to the problems that I face during project creation and compilation here at the NS Slack channel. If you could please check the slack channel and tell me about the approaches and solutions that I apply to the project. It Would be helpful to continue further. Also, I try with your above-mentioned alpha solution by installing But now when I run |
@Arslan-Munir I also got the same 'CleanWebpackPlugin is not a constructor' error message. This error message is gone after I followed the instruction given in the build warning message regarding to updating to the latest webpack.config.js file. The warning message looks like this: 'Note: webpack.config.js is different than the suggested @nativescript/webpack config at /Users/{username}/{projectpath}/node_modules/@nativescript/webpack/templates/webpack.angular.js. |
After updating to Angular 9, it seems like It doesn't recognise imports inside app.scss, I'm using platform specific scss files. This error is showing when using tns android: |
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):@nativescript/angular ^9.0.0
~9.1.0
Describe the bug
I have 2 issues, only one of them is happening repeatedly.
Originally, after following the update guide, one of my components was not showing (although I believe that's due to not using
--env.aot
)The new bug is
Unable to create application
when I try to run. In the cli, it states that the error is due to the first line inapp.scss
:However, on my phone, it's pointing to
bundle.js:37:144
. Here's what that looks like:Note that the first "u" is missing in the first undefined, it's the only character on line 36
To Reproduce
I came across this by following the aforementioned guide
Expected behavior
The app should compile and run without any issues
Sample project
I can try to provide a sample project soon if needed
Additional context
I'm also having issues with vscode not properly using my
tsconfig.json
after following the update instructions. Before attempting the update, there were no issues.I also had to switch from npm package
nativescript-angular
to@nativescript/angular
The text was updated successfully, but these errors were encountered: