Skip to content
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

17588 - Upgrade to Node 20.5.1 && Fix FAS-UI Library #2710

Merged
merged 15 commits into from
Feb 8, 2024

Conversation

seeker25
Copy link
Collaborator

@seeker25 seeker25 commented Feb 6, 2024

bcgov/entity#17588

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-auth license (Apache 2.0).

@@ -25,7 +25,7 @@
"@vue/compiler-dom": "^3.2.45",
"@vue/composition-api": "^1.7.1",
"axios": "^1.6.0",
"fas-ui": "github:bcgov/fas-ui#v1.1.4",
Copy link
Collaborator Author

@seeker25 seeker25 Feb 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old version was causing a npm error that could only be replicated in CI and Dockerfile

New library version required a bit of going in and testing and debugging to get it to work with Vite and Terser etc. (Why I upped the points)

@@ -66,7 +66,7 @@ export default defineConfig({
// Fix for module decorator unit tests fail
'vuex-module-decorators': path.resolve(__dirname, './node_modules/vuex-module-decorators/dist/esm/index.js'),
// Fix for multiple vue detected on fas-ui issue, set alias to force fas-ui to use /vue
'vue': path.resolve(__dirname, './node_modules/vue/dist/vue.runtime.esm.js')
Copy link
Collaborator Author

@seeker25 seeker25 Feb 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FAS Component didn't use ESM, reverting back to the regular seemed to fix it, otherwise the Vue references inside of FAS-UI required Vue.default. instead of Vue. to work correctly

@seeker25
Copy link
Collaborator Author

seeker25 commented Feb 8, 2024

/gcbrun

@bcgov bcgov deleted a comment from bcregistry-sre Feb 8, 2024
@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-account-dev--pr-2710-xrwhxk8f.web.app

@@ -29,6 +29,10 @@ export default defineConfig({
define: {
'import.meta.env.ABOUT_TEXT': generateAboutText(aboutText1, aboutText2)
},
esbuild: {
minifySyntax: false,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR [Vue warn]: Invalid component name: "ContractForm$1". To fix these

@seeker25 seeker25 changed the title Upgrade to node 20.5.1 17588 - Upgrade to Node 20.5.1 && Fix FAS-UI Library Feb 8, 2024
@seeker25
Copy link
Collaborator Author

seeker25 commented Feb 8, 2024

Going to do a release before merging this

Copy link

sonarqubecloud bot commented Feb 8, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
1.3% Duplication on New Code

See analysis details on SonarCloud

@seeker25 seeker25 merged commit 21d7bcb into bcgov:main Feb 8, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants