You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you were expecting:
Instructions for remix integration will work.
What happened instead:
Getting an error:
__vite_ssr_import_2__.default is not a function
Steps to reproduce:
If following the tutorial,
The remix.config.js file does not exist while the tutorial tells you to edit it, so I created it.
After creating routes/admin.$.tsx and styles/admin.css and copy-pasting the contents, running the dev server by npm run dev and navigating to the root webpage will display the error.
Last version that did not exhibit the issue (if applicable): N/A
React version: 18.2.0
Browser: Brave 1.67.123
Stack trace (in case of a JS error):
at eval (C:/Users/apricot/src/react-admin-issue/my-remix-app/app/routes/admin.$.tsx:15:51)
at async instantiateModule (file:///C:/Users/apricot/src/react-admin-issue/my-remix-app/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:53451:5
The text was updated successfully, but these errors were encountered:
Reproduced, thanks for the report. This is due to Remix switching to Vite.js, we must adapt our documentation. In the meantime, choose the Classic Remix Compiler.
What you were expecting:
Instructions for remix integration will work.
What happened instead:
Getting an error:
__vite_ssr_import_2__.default is not a function
Steps to reproduce:
If following the tutorial,
remix.config.js
file does not exist while the tutorial tells you to edit it, so I created it.routes/admin.$.tsx
andstyles/admin.css
and copy-pasting the contents, running the dev server bynpm run dev
and navigating to the root webpage will display the error.Related code:
The code is here: https://github.com/keita-makino/react-admin-issue-remix
Other information:
Environment
The text was updated successfully, but these errors were encountered: