Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package.json has an invalid type property #79

Closed
jlaine opened this issue Jun 1, 2024 · 0 comments
Closed

package.json has an invalid type property #79

jlaine opened this issue Jun 1, 2024 · 0 comments

Comments

@jlaine
Copy link

jlaine commented Jun 1, 2024

While attempting to build a project which uses tinymce-i18n with esbuild I encountered the following warning:

    node_modules/tinymce-i18n/package.json:11:10:
      11 │   "type": "library",
         ╵           ~~~~~~~~~

  The "type" field must be set to either "commonjs" or "module".

The NodeJS documentation confirms that "library" is not a valid value for this field:

https://nodejs.org/api/packages.html#type

AFAICT, the most straightforward fix is to remove the "type" field, which should retain the current behaviour: this package is a legacy commonjs module.

@mklkj mklkj closed this as completed in 6308c64 Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant