plasmo icon indicating copy to clipboard operation
plasmo copied to clipboard

[BUG] Build failure after installing React Markdown package | (vfile package import issues)

Open ts-geek22 opened this issue 1 year ago • 4 comments

What happened?

I'm using Plasmo with React JS, Typescript, and src dir. I added the react markdown package and then the build started to fail.

After digging for some time, I found one package named vfile in the node modules in which some import paths are configured in the package's package.json file.

These imports are not resolved properly in the build resulting in errors.

Screenshot from 2024-09-18 09-23-17 Screenshot from 2024-09-18 09-20-44 Screenshot from 2024-09-18 09-31-21 Screenshot from 2024-09-18 09-31-09 Screenshot from 2024-09-18 09-32-40

Version

Latest

What OS are you seeing the problem on?

Linux

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

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

ts-geek22 avatar Sep 18 '24 04:09 ts-geek22

a temporary resolution method

chengfengfengwang avatar Oct 13 '24 09:10 chengfengfengwang

I am getting this issue too. I saw the temp solution is to upgrade vite, but it must be upgraded by Plasmo author himself

eric2788 avatar Oct 23 '24 06:10 eric2788

I also met this issue when using Plasmo 0.89.3.

huweihong avatar Oct 26 '24 03:10 huweihong

I am getting this issue too. I saw the temp solution is to upgrade vite, but it must be upgraded by Plasmo author himself

you missed mine https://github.com/remarkjs/react-markdown/issues/864#issuecomment-2392006071

ahmedrowaihi avatar Nov 15 '24 16:11 ahmedrowaihi