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

No "exports" main defined #145

Open
7 tasks done
yeziluochen opened this issue May 29, 2024 · 0 comments
Open
7 tasks done

No "exports" main defined #145

yeziluochen opened this issue May 29, 2024 · 0 comments

Comments

@yeziluochen
Copy link

Describe the bug

A non-existent export error occurred in the vite-plugin-md dependency package while using electrond.
The complete error is reported:
[0] ERROR error when starting dev server:
[0] Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defiVitein C:\Users\Administrator\Desktop\note\vue3-desktop\node_modules.store\[email protected]\node_modules@yankeeinlondon\happy-wrapper\package.json
[0] at new NodeError (node:internal/errors:399:5)
[0] at exportsNotFound (node:internal/modules/esm/resolve:361:10)
[0] at packageExportsResolve (node:internal/modules/esm/resolve:641:13)
[0] at resolveExports (node:internal/modules/cjs/loader:565:36)
[0] at Module._findPath (node:internal/modules/cjs/loader:634:31)
[0] at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27)
[0] at Module._load (node:internal/modules/cjs/loader:920:27)
[0] at Module.require (node:internal/modules/cjs/loader:1141:19)
[0] at require (node:internal/modules/cjs/helpers:110:18)
[0] at Object. (C:\Users\Administrator\Desktop\note\vue3-desktop\node_modules.store\[email protected]\node_modules\vite-plugin-md\dist\index.cjs:18031:28)
[0]
[0] vite exited with code 1

Reproduction

https://gitee.com/yeziluochen/vue3-desktop.git

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12400F
    Memory: 3.49 GB / 15.85 GB
  Binaries:
    Node: 18.14.1 - C:\Program\nvm\node\node.EXE
    npm: 9.8.1 - C:\Program\nvm\node\npm.CMD
    Browsers:
    Edge: Chromium (124.0.2478.67)
    Internet Explorer: 11.0.19041.4355

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
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