sanity-io / sanity-plugin-markdown

Markdown support in the Sanity Studio
MIT License
51 stars 8 forks source link

Studio carsh after install plugin in Remix / vite based project :: Unexpected token 'export' #97

Open CXZ7720 opened 8 months ago

CXZ7720 commented 8 months ago

Describe the bug Sanity studio crash after install markdown plugin following readme instructions. The error message is Unexpected token 'export'

The solution of nextjs doesn't work.

To Reproduce

Steps to reproduce the behavior:

  1. Initiate Sanity project with remix and vite based template.
  2. Add sanity-plugin-markdown
  3. run dev server.

Expected behavior

Screenshots image

Which versions of Sanity are you using?

@sanity/cli (global)        3.32.0 (up to date)
@sanity/asset-utils          1.3.0 (up to date)
@sanity/demo                 2.0.0 (up to date)
@sanity/icons               2.11.2 (up to date)
@sanity/image-url            1.0.2 (up to date)
@sanity/presentation        1.11.4 (latest: 1.11.5)
@sanity/preview-url-secret   1.6.4 (up to date)
@sanity/react-loader         1.9.3 (up to date)
@sanity/schema              3.32.0 (up to date)
@sanity/ui                   2.0.7 (latest: 2.0.10)
@sanity/vision              3.32.0 (up to date)
@sanity/visual-editing       1.7.0 (latest: 1.7.1)
sanity                      3.32.0 (up to date)

What operating system are you using? MacOS Sonoma 14.4(ARM)

Which versions of Node.js / npm are you running?

pnpm -v && node -v
8.15.4
v20.11.1

Additional context

you can find the remix/vite based sanity template from here : https://github.com/SimeonGriggs/sanity-remix-template