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

[BUG] CSUI not rendered in production build #1070

Open
2 of 3 tasks
adibzter opened this issue Sep 12, 2024 · 2 comments
Open
2 of 3 tasks

[BUG] CSUI not rendered in production build #1070

adibzter opened this issue Sep 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@adibzter
Copy link

What happened?

This simple code in content.tsx is not rendered in the production build. In dev mode, it is rendered as intended.

import React from 'react';

const Overlay = () => {
  return (
    <>
      <p>hahahahah</p>
    </>
  );
};

export default Overlay;

Version

Latest

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

(OPTIONAL) Contribution

  • I would like to fix this BUG via a PR

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@adibzter adibzter added the bug Something isn't working label Sep 12, 2024
@sleekslush
Copy link
Contributor

This definitely works in a quick test that I just ran. Need more details.

@adibzter
Copy link
Author

My bad. I have content.ts and content.tsx. I thought content.tsx is relying on content.ts since in the docs mentioned:

https://docs.plasmo.com/framework/content-scripts-ui#config

Content scripts UI are a subset of content scripts.

Before I close this issue, want to confirm that if we have content files contents/calculate.ts and contents/calculate.tsx, Plasmo will only build contents/calculate.ts?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants