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 in ....\.pnpm\[email protected]\node_modules\estree-walker\package.json #219

Open
olemarius opened this issue Feb 24, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@olemarius
Copy link

🐛 The bug

After running pnpm install and adding to vite.config.ts, I got the following error. I'm using vite 4 and pnpm

failed to load config from C:\Git\BlocPlatform\Bloc\Frontend\Bloc.Vue\vite.config.ts
error when starting dev server:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in C:\Git\BlocPlatform\Bloc\Frontend\Bloc.Vue\node_modules\.pnpm\[email protected]\node_modules\estree-walker\package.json
    at new NodeError (node:internal/errors:372:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:472:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:693:7)
    at resolveExports (node:internal/modules/cjs/loader:482:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Git\BlocPlatform\Bloc\Frontend\Bloc.Vue\node_modules\.pnpm\[email protected]\node_modules\magic-regexp\dist\transform.cjs:5:22)

 *  The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command npm run dev" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

🛠️ To reproduce

n/a

🌈 Expected behaviour

Expected config to load.

ℹ️ Additional context

No response

@olemarius olemarius added the bug Something isn't working label Feb 24, 2023
@ForeshadowRU
Copy link

Same Issue.

@ForeshadowRU
Copy link

Any updates on this?

@danielroe
Copy link
Member

Would you try renaming your vite.config file to vite.config.mjs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants