DEV Community

Francisco Javier
Francisco Javier

Posted on

Add scripts type module at vite build

I have the problem that I have several scripts that are not type module and when I do the npm run build it asks me to put the attribute type=‘module’ but this breaks the app. I don't know how to add these scripts to my application without getting an error. Please help.

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →