glide icon indicating copy to clipboard operation
glide copied to clipboard

Build error (ES module) with node v16.15.0

Open julienchazal opened this issue 3 years ago • 4 comments

Hello

Using last version of SvelteKit and node 16.15.0 i get this error :

(node:15002) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. Unexpected token 'export'

adding "type":"module" to node_modules/@glidejs/glide/package.json fix the problem

julienchazal avatar Jul 26 '22 14:07 julienchazal

@jedrzejchalubek is it possible to add this feature so that we can use Glide with newer versions of Node ?

please see https://nodejs.org/api/packages.html#packagejson-and-file-extensions

thanks !

julienchazal avatar Jul 27 '22 09:07 julienchazal

@jedrzejchalubek up :)

julienchazal avatar Sep 06 '22 14:09 julienchazal

@julienchazal Are you open to making a PR with that change?

jedrzejchalubek avatar Sep 06 '22 16:09 jedrzejchalubek

@jedrzejchalubek done

julienchazal avatar Sep 07 '22 08:09 julienchazal

close with #623

julienchazal avatar Sep 22 '22 14:09 julienchazal