Skip to content
New issue

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

Named export 'Alignment' not found In Remix Run #218

Open
lenniezelk opened this issue Nov 23, 2023 · 2 comments
Open

Named export 'Alignment' not found In Remix Run #218

lenniezelk opened this issue Nov 23, 2023 · 2 comments

Comments

@lenniezelk
Copy link

lenniezelk commented Nov 23, 2023

Getting this error when using '@rive-app/react-canvas' in Remix run
Screenshot 2023-11-23 at 17 30 27

Typescript version: 5.1.6
React version: 18.2.0
Remix Run version: 2.3.1

@lenniezelk lenniezelk changed the title Named export 'Alignment' not found Named export 'Alignment' not found In Remix Run Nov 23, 2023
@GiancarlosIO
Copy link

Same issue with rsbuild

web-infra-dev/rspack#7022

@mckayreedmoore
Copy link

I have the same issue.

Error:

Internal server error: [vite] Named export 'Alignment' not found. The requested module '@rive-app/react-canvas' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@rive-app/react-canvas';
const {Layout, Fit, Alignment} = pkg;

Using the suggested changes doesn't work. When they are implemented it says that the names don't exist in the package.

@rive-app/react-canvas : 4.14.8
typescript : 5.1.6
remix-run : 2.11.2
react : 18.2.20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants