We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing moti via Vite results in some errors, usually in the form of it expecting cjs but getting esm:
/takeout/test/node_modules/@tamagui/animations-moti/node_modules/moti/author/index.js:1 export * from '../build/author'
Should work with Vite / esm
I think you can try the Tamagui starter:
npm create tamagui@latest --template=simple-web
And then add moti and run dev:vite
dev:vite
- Moti: latest! - Reanimated: - React Native:
No response
I promise I'll get a better one soon :)
The text was updated successfully, but these errors were encountered:
Does vite have any sort of transpiling the way that next.js has transpilePackages?
transpilePackages
Sorry, something went wrong.
Moti uses expo-modules build so presumably any expo module will run into the same issue.
expo-modules build
No branches or pull requests
Is there an existing issue for this?
Do you want this issue prioritized?
Current Behavior
Importing moti via Vite results in some errors, usually in the form of it expecting cjs but getting esm:
Expected Behavior
Should work with Vite / esm
Steps To Reproduce
I think you can try the Tamagui starter:
And then add moti and run
dev:vite
Versions
Screenshots
No response
Reproduction
I promise I'll get a better one soon :)
The text was updated successfully, but these errors were encountered: