plasmo icon indicating copy to clipboard operation
plasmo copied to clipboard

[BUG] with-next example break when using schemes

Open adelin-b opened this issue 8 months ago • 0 comments

What happened?

Hello, In order to reuse component, when I use a component that import any image like this url:~assets/my-asset.png or data-url:~assets/my-asset.png etc. Nextjs cannot build at all. It would be good to provide either:

  • ignoring the scheme and resolve all of them to ~assets/my-asset.png
  • make it works the same way, maybe a withPlasmo(nextConfig) or some sort like other projects do to adapt nextjs.

Version

Latest

What OS are you seeing the problem on?

No response

What browsers are you seeing the problem on?

No response

Relevant log output

No response

(OPTIONAL) Contribution

  • [ ] I would like to fix this BUG via a PR

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct
  • [X] I checked the current issues for duplicate problems.

adelin-b avatar Nov 23 '23 23:11 adelin-b