I got this error when trying to import 'svelte-convert/react'
inside src/lib/index.ts
of a SvelteKit
project.
Cannot use import statement outside a module
node_modules/svelte-convert/dist/react.js:1
import React from 'react';
This only happens on the first run tho, if I refresh the page, it works.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too