Repository navigation
Replace awesome-typescript-loader with ts-loader, update package-lock.json - #158
Conversation
|
With this PR I can also do a clean update (delete |
|
What a seemingly simple but involved task. Thank you!
Let's do this as fast as possible (be it in a separate PR or just separate commit, don't care much :) ). I just tried it with this LTS and the app runs and the tests are green :) (using node 16.13.0 and npm 8.1.0) |
|
Ok, I just upgraded the package-lock file to 8.1.0. I also dded a note in README.md that we recommend using node LTS gallium. I agree let's merge this, because it is working and something is broken in master. If we ever want to go back to awesome-typescript-loader we can still figure out how to do it properly and do this. |
|
Just remember that when switching branches we either need to update package-lock.json or downgrade the npm version, because the 'lockfileVersion' changes from 1 to 2 between npm 6 and 8. Future PRs should use npm 8 and |
|
For travis we also use npm 8.1.0 (latest LTS) already by the way. |
|
I had the chance to try it now. Unfortunately this doesn't work for me yet. I have tried with Windows 11 and npm 8.1.0. I get the following error. Something seems to be off with the height graph. If I delete the package.lock.json file, The build executes without errors. |
|
How does the package-lock.json created by your setup differ from the one I commited? Can you push your file to some branch so I can try it on my machine? |
|
And just to be sure, did you try deleting the |
|
I had to do the following:
This updated a lot of dependencies in the Now, there are vulnerabilities again, when running |
|
Using your branch I deleted I also just updated So our setups produce different |
|
Can you please try this: npm/npm#16938 (comment) ? but maybe you can reproduce my package-lock.json file after running My npm and node versions: |
|
clearing the cashe didn't solve the problem. I still get the same error message. The node and npm versions are identical to yours. |
dang... but thanks for testing. no idea what we should do tbh. |
|
Did you clear your cashe? :-) |
|
Yes :) And @karussell tried it as well and saw the same behavior that I see (works with my package-lock.json but not with yours). But he also uses Linux. |
|
Should we try downgrading to the previous node LTS version (fermium)? |
|
I just went back to node fermium (not gallium as i wrote in the commit message): Can you please try if this works? |
|
Luckily at least the Fermium LTS seems to work for everybody. |
As I wrote here #148 (comment), I could not run
without errors.
awesome-typescript-loaderhas not been updated in three years, so I decided to replace it with a recent version ofts-loader. This actually fixed the problem.A few more changes were necessary to make this work:
package-lock.jsonbefore doing the change, but this also meant a minor version update ofreact-map-gl. This in turn resulted in a few type errors that I had to fix (see changes inMap.tsx).jest, so I added@types/jestnpm iusing npm6.14.15.