PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.59k stars 369 forks source link

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

Open ts-geek22 opened 2 months ago

ts-geek22 commented 2 months ago

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

Code of Conduct

chengfengfengwang commented 1 month ago

a temporary resolution method

eric2788 commented 3 weeks ago

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

huweihong commented 3 weeks ago

I also met this issue when using Plasmo 0.89.3.

ahmedrowaihi commented 4 days ago

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