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

sed command in replace-background-path fails when running npm run dev #31

Closed
sullyj3 opened this issue Dec 17, 2023 · 1 comment
Closed

Comments

@sullyj3
Copy link

sullyj3 commented Dec 17, 2023

OS: linux
sed version: sed (GNU sed) 4.9

> cd build; sed -i "" "s#\$BACKGROUND_PATH#$(find app -wholename '*/immutable/background.*.js')#g" manifest.json; cd -

sed: can't read s#$BACKGROUND_PATH#app/immutable/background.b7e61a54.js#g: No such file or directory

The extension therefore fails to load:

Failed to load extension from: <path to project>. Could not load background script '$BACKGROUND_PATH'.

The extension successfully loads when I comment out the "service_worker" line of static/manifest.json

@sullyj3 sullyj3 changed the title sed command in npm run dev fails sed command in replace-background-path fails running npm run dev Dec 17, 2023
@sullyj3 sullyj3 changed the title sed command in replace-background-path fails running npm run dev sed command in replace-background-path fails when running npm run dev Dec 17, 2023
@sullyj3
Copy link
Author

sullyj3 commented Dec 17, 2023

Oops, sorry, opened this on the wrong repo!

@sullyj3 sullyj3 closed this as completed Dec 17, 2023
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

No branches or pull requests

1 participant