Skip to content

Vite React import issues #46374

Closed
Closed
@abhinavlg

Description

@abhinavlg

Steps to reproduce

Steps:

  1. Create a react app using vite (since create-react-app has been deprecated)
  2. Copy the any template from templates directory to your project

Current behavior

We get errors importing the js files as vite does not parse js files as jsx, it is not able to differentiate between them.

Expected behavior

It should import the files properly

Context

No response

Your environment

No response

Search keywords: vite, create-react-app, import jsx

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions