nomorechokedboy/markdown-vue

try fix: get error in the nuxt dev mode

Closed this issue · 6 comments

I'm submitting a ...

  • bug report

What is the current behavior?

get error in the nuxt dev mode

What is the expected behavior?

work

我现在有一个比较笨的方法尝试修复它

Currently, the application will be crash if you use this component in Nuxt project dev mode and I can't figure out why this is happening, it works on production build but not dev. Unfortunately, I still can't figure out how to solve this 😞 . If you can figure it out, feel free to fix it or discuss with me.

Hello, i try fix it in the #8

Hello, i try fix it in the #8

Dude, you're my savior. Thank you for the fix. Can I ask you how did you figure it out. Also, I am trying to install the newest deps, and it works without any error

According to the error message, I checked the debug and found that its export method on the browser is CJS.

According to the error message, I checked the debug and found that its export method on the browser is CJS.

I also found that. However, I don't know how to fix that, didn't think and research about the optimize deps option. Again, thank you for the fix