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

simple build with vite is breaking because it is not compatible to ESM type #464

Open
veeramarni opened this issue Nov 18, 2024 · 1 comment

Comments

@veeramarni
Copy link

Describe the bug

I'm getting this error while building

11:26:39 AM [vite] Error when evaluating SSR module virtual:remix/server-build: failed to import "flexlayout-react"
|- /test/node_modules/flexlayout-react/lib/index.js:1
export * from './view/Layout';
^^^^^^

SyntaxError: Unexpected token 'export'

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Build the component using vite

Expected behavior

Vite build should run fine.

Operating System

macOS

Browser Type?

Google Chrome

Browser Version

91.1

Screenshots or Videos

WIll add later

Additional context

No response

@veeramarni
Copy link
Author

created this PR #465 which will fix the pure esm issues.

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

1 participant