-
Notifications
You must be signed in to change notification settings - Fork 78
fix: proposed fix for pnpm dev #616
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
fix: proposed fix for pnpm dev #616
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job with this so far but just make sure that all checks are passing. Feel free to request another review when the PR is ready.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pnpm dev
works somewhat now :D
in addition to other comments, clicking to open the CourseCatalogInjectedPopup fails, that needs to be addressed
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@crxjs/[email protected]": "patches/@[email protected]", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're completely getting rid of the path, the patch file should also be deleted
server: { | ||
strictPort: true, | ||
port: 5173, | ||
cors: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
"@commitlint/config-conventional": "^19.7.1", | ||
"@commitlint/types": "^19.5.0", | ||
"@crxjs/vite-plugin": "2.0.0-beta.21", | ||
"@crxjs/vite-plugin": "2.0.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's good to update but this causes a build error for pnpm build
because of defineManifest
changing
pnpm build
needs to work, and don't just // @ts-ignore
Succeeded by #627 |
Fixes something.
First problem I encountered was that a script wasn't loading due to CORS interfering.
This was solved using this section of the Vite docs: https://vite.dev/config/server-options.html#server-cors. Notice that I set the value to true, which means the most liberal enforcement of CORS. This might be in your interest to change.
Second problem that came after solving this first one was that a script seemed to be broken. Here was the error:
After tracking down the script, I found it inside the source code for CRX.js (inside node_modules). This indicated that this was a bug with this dependency (which makes sense since the version yall are using is a beta). So I updated that to the latest version. I did this without consideration for breaking changes, which might be of your concern.
However, that seems to have fixed this issue. Rebuilds seem to happen quick now, so this might be a replacement to
build:watch
.This change is