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

Content Script cannot use React #7

Closed
dim0147 opened this issue Jun 18, 2022 · 5 comments · Fixed by #9
Closed

Content Script cannot use React #7

dim0147 opened this issue Jun 18, 2022 · 5 comments · Fixed by #9
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@dim0147
Copy link

dim0147 commented Jun 18, 2022

  • Hi, I have the content script that will create a div element and use React render to that div then append it into the document.body, but when content script loaded it show this error Cannot use import statement outside a module
    image
  • My content script code:
    image

image

@github-actions
Copy link

Thank you for your contribution. We will check and reply to you as soon as possible.

@Jonghakseo Jonghakseo added enhancement New feature or request good first issue Good for newcomers labels Jun 26, 2022
@Jonghakseo Jonghakseo linked a pull request Jun 26, 2022 that will close this issue
@Jonghakseo
Copy link
Owner

hello @dim0147

I created a pull request to fix the issue.

Please check if it helps you solve your problem.

Thanks for raising a useful issue.

@dim0147
Copy link
Author

dim0147 commented Jun 26, 2022

Thank you

@dim0147 dim0147 closed this as completed Jun 26, 2022
Repository owner deleted a comment from allcontributors bot Oct 15, 2023
Repository owner deleted a comment from allcontributors bot Oct 15, 2023
@Jonghakseo
Copy link
Owner

@all-contributors please add @dim0147 for bug

@allcontributors
Copy link
Contributor

@Jonghakseo

I've put up a pull request to add @dim0147! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants