Incorrect type attribute value in package.json? #49
mholy-arbes
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
package.json
contains the followingtype
attribute value:"type": "lib/index.d.ts"
According to the node.js documentation the correct value should be "commonjs" or the type attribute should not be present at all.
I'm mentioning this because it seems that when using cookies-next within a Next.js application that uses ES6 modules, the build fails if the type attribute does not have correct value.
Is this really an issue or am I mistaken? I´m new to the Node.js world.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions