You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I tested to integrate the README sample in a project of mine, and rollup shows me this error:
[!] (plugin commonjs--resolver) Error: Unexpected token (Note that you need plugins to import files that are not Javascript)
node_modules/gridjs-svelte/gridjs.svelte (1:0)
<script >import { onMount, createEventDispatcher } from "svelte";
Strangely, if I copy gridjs.svelte into my project, and the import it with import Grid from "./gridjs.svelte", this solves the issue. So it seems that rollup tries to evaluate gridjs.svelte as javascript when I install it with npm, but I am not really sure why. This is the only svelte library that causes me this error. Is this issue due to my configuration, or to the way gridjs-svelte is exported?
Hi. I tested to integrate the README sample in a project of mine, and rollup shows me this error:
Strangely, if I copy gridjs.svelte into my project, and the import it with
import Grid from "./gridjs.svelte"
, this solves the issue. So it seems that rollup tries to evaluate gridjs.svelte as javascript when I install it with npm, but I am not really sure why. This is the only svelte library that causes me this error. Is this issue due to my configuration, or to the way gridjs-svelte is exported?I use node v16.
package.json
rollup.config.js
The text was updated successfully, but these errors were encountered: