Skip to content
New issue

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

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

Already on GitHub? # to your account

No version specified in mjs and cjs spawns errors in webpack #82

Open
ymeskini opened this issue Apr 19, 2022 · 3 comments
Open

No version specified in mjs and cjs spawns errors in webpack #82

ymeskini opened this issue Apr 19, 2022 · 3 comments

Comments

@ymeskini
Copy link

Hey, I have the following error with the latest version 1.1.7 saying that there is no version specified in package.json and there is no version in mjs/package.json

WARNING in shared module deep-object-diff -> /node_modules/deep-object-diff/mjs/index.js
No version specified and unable to automatically determine one. No version in description file (usually package.json). Add version to description file, or manually specify version in shared config.
@JeremyBradshaw7
Copy link

Getting a similar warning in a react native typescript project:

warn Package deep-object-diff has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Users/.../ccf/node_modules/deep-object-diff/package.json

@dipak-telangre
Copy link

Same error in VueJs
image

@mattphillips
Copy link
Owner

Hey all, are you using webpack and running into this issue?

I've just had a quick google search and found: webpack/webpack#13457 which I think may be related.

I could potentially add a name and version field to the package.json for both the CJS and ESM builds like what has been done here: okta/okta-auth-js#1269 (comment) but I don't think that is the correct solution (as name and version should only be needed in the root package.json of the package).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants