Skip to content

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

Description

@veeramarni

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions