Skip to content

Conversation

aiyazmostofa
Copy link
Contributor

@aiyazmostofa aiyazmostofa commented Jul 17, 2025

Fixes something.

First problem I encountered was that a script wasn't loading due to CORS interfering.

image

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:

image

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 Reviewable

Copy link
Member

@doprz doprz left a 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.

@Samathingamajig Samathingamajig self-requested a review July 19, 2025 17:35
Copy link
Collaborator

@Samathingamajig Samathingamajig left a 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]",
Copy link
Collaborator

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,
Copy link
Collaborator

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",
Copy link
Collaborator

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

@Razboy20
Copy link
Member

Razboy20 commented Oct 8, 2025

Succeeded by #627

@Razboy20 Razboy20 closed this Oct 8, 2025
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