-
Notifications
You must be signed in to change notification settings - Fork 1
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
Upgrade Ember.js from v3.28.3 to v4.10.0 #103
Conversation
- Standardise helper's function signature and body To match what is generated by default when creating a new helper. - Fix types errors provided by implicit TypeScript checks This will help whenever the project is migrated to TS
What was done and why: - After the `stream` module, the modules `util` and `process` had to be added to the dependencies as well in order to satisfy Webpack v5 which does not include polyfills anymore, otherwise tests were failing. - https://webpack.js.org/migrate/5/ - https://webpack.js.org/configuration/resolve/#resolvefallback - https://github.com/ef4/ember-auto-import/blob/v2.6.0/docs/upgrade-guide-2.0.md - https://gist.github.com/ef4/d2cf5672a93cf241fd47c020b9b3066a For the `process` module, adding it to the `fallback` key was not working, it had to be included in the `plugins` key: - https://stackoverflow.com/questions/65018431/webpack-5-uncaught-referenceerror-process-is-not-defined/65018686#65018686 - https://discord.com/channels/480462759797063690/898671957007011841/898682272847384596 Overall, these messages on Discord give the entire final solution in this commit. - `wepack` moved to the dependencies because otherwise `eslint-plugin-n` was returning the error: ``` "webpack" is not published.eslintn/no-unpublished-require ``` See: - https://github.com/eslint-community/eslint-plugin-n/blob/15.6.1/docs/rules/no-unpublished-require.md - mysticatea/eslint-plugin-node#47
53338ed
to
99cbf73
Compare
@MrChocolatine you were almost there. I dropped the commits "remove ember-page-title" (the dummy app template uses it) and "rebuild yarn.lock" and then rebase the MR with |
The tradeoff of having EDIT: I no longer have the error locally, something was maybe out of date on my side. |
94509cb
to
99cbf73
Compare
Build
Breaking: Upgrade to Ember.js version 4.10 (#103)
Requirements bumped to Ember.js/CLI version 3.28 or above.
Close #100 , #101, #102 .