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

ERR_PACKAGE_PATH_NOT_EXPORTED on Node 17+ #76

Closed
withSang opened this issue Apr 5, 2022 · 0 comments
Closed

ERR_PACKAGE_PATH_NOT_EXPORTED on Node 17+ #76

withSang opened this issue Apr 5, 2022 · 0 comments
Labels
😱 bug Something isn't working

Comments

@withSang
Copy link
Member

withSang commented Apr 5, 2022

1. 버전

  • NVM 0.39.1 + Node 17.8.0
  • React 17.0.1

2. 실행 환경

  • macOS 12.3 (arm64)

3. 버그 재현 방법

nvm install 17
git clone https://github.com/sparcs-kaist/taxi-front
cd taxi-front
nvm use 17
npm install
npm run start

4. 예상되는 문제

  • postcss-safe-parser 패키지를 로드하는 과정에서 ERR_PACKAGE_PATH_NOT_EXPORTED 오류가 발생하며 서버를 시작할 수 없습니다.
 jeongsang@jeongsang-ui-MacBookAir > /directory_for_taxi_front >> main ± >> npm start

> do-it-example@0.1.0 start
> react-scripts start

node:internal/modules/cjs/loader:488
      throw e;
      ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /directory_for_taxi_front/node_modules/postcss-safe-parser/node_modules/postcss/package.json
    at new NodeError (node:internal/errors:372:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:448:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:727:3)
    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:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/directory_for_taxi_front/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v17.8.0

5. 원인

6. 추가 정보

  • 없음.
@withSang withSang added the 😱 bug Something isn't working label Apr 5, 2022
@withSang withSang self-assigned this Apr 5, 2022
@14KGun 14KGun closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2022
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

2 participants