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

bug: the package may have incorrect main/module/exports specified in its package.json #3

Closed
Arenukvern opened this issue Mar 11, 2021 · 7 comments · May be fixed by #4
Closed

bug: the package may have incorrect main/module/exports specified in its package.json #3

Arenukvern opened this issue Mar 11, 2021 · 7 comments · May be fixed by #4

Comments

@Arenukvern
Copy link

Hello.

Thank you for your plugin!

Found the following error during rollup compilation:

[commonjs] Failed to resolve entry for package "objectorarray". The package may have incorrect main/module/exports specified in its package.json.

In node_modules (see it picture below), package.json entry pointed to dist/index , however index placed in root folder, that cause an error above.

image

@Arenukvern Arenukvern changed the title bug: The package may have incorrect main/module/exports specified in its package.json bug: the package may have incorrect main/module/exports specified in its package.json Mar 21, 2021
@Arenukvern Arenukvern reopened this Mar 21, 2021
@ath0mas
Copy link

ath0mas commented Apr 22, 2021

Node.js v16 deprecation for this now:

(node:6764) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\MyProject\node_modules\objectorarray\package.json' of 'dist/index.js'. Please either fix that or report it to the module author

See https://nodejs.org/api/deprecations.html#DEP0128

@deadcoder0904
Copy link

Yep, facing the same thing. Please release a new version without main field :)

@zhouhanseng
Copy link

zhouhanseng commented Jun 21, 2021

@Arenukvern @deadcoder0904

Fixed by zhouhanseng@d5021ac.

endent@2.1.0 released.

PS. Could you please help me to close this issue, since I lost my 2 factor authentic token, this project has moved to https://github.com/zhouhanseng/objectorarray

moudev added a commit to moudev/differenzo that referenced this issue Mar 11, 2022
error:
[vite:resolve] Failed to resolve entry for package "@moudev/myers-diff".
The package may have incorrect main/module/exports specified in its
package.json: Failed to resolve entry for package "@moudev/myers-diff".
The package may have incorrect main/module/exports specified in its
package.json.

solution:
- indentjs/objectorarray#3
moudev added a commit to moudev/differenzo that referenced this issue Mar 11, 2022
error:
[vite:resolve] Failed to resolve entry for package "@moudev/myers-diff".
The package may have incorrect main/module/exports specified in its
package.json: Failed to resolve entry for package "@moudev/myers-diff".
The package may have incorrect main/module/exports specified in its
package.json.

solution:
- indentjs/objectorarray#3
@jayxiaolei
Copy link

I facing the same thing,
image
image
how to resolve it ,my node version is 16.0.0

@HakobSargsyan
Copy link

I facing the same thing, image image how to resolve it ,my node version is 16.0.0

is it solved @jayxiaolei ?

@BariqDharmawan
Copy link

I facing the same thing, image image how to resolve it ,my node version is 16.0.0

is it solved @jayxiaolei ?

Same question, is it solved? How to solve that

@leah-committed
Copy link

Same question, is it solved? How to solve that

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

Successfully merging a pull request may close this issue.

8 participants