Skip to content

[Bug] npm run dev error : ERR_PACKAGE_PATH_NOT_EXPORTED #26

Open
@choseungyoon

Description

@choseungyoon

Version

notus-nextjs@1.1.0

Reproduction link

https://github.com/creativetimofficial/notus-nextjs

Operating System

macOS Monterey

Device

MacBook Prom APPLE M1 Pro

Browser & Version

chrome & 107.0.0.1

Steps to reproduce

  1. Go to https://github.com/creativetimofficial/notus-nextjs
  2. Download code
  3. unzip
  4. npm install
  5. npm run dev -> error

What is expected?

run project

What is actually happening?

error when "npm run dev"

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

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/node' is not defined by "exports" in /Users/seungyuncho/Downloads/notus-nextjs-main/node_modules/postcss/package.json
at new NodeError (node:internal/errors:393:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:358:9)
at packageExportsResolve (node:internal/modules/esm/resolve:668:3)
at resolveExports (node:internal/modules/cjs/loader:529:36)
at Module._findPath (node:internal/modules/cjs/loader:569:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
at Module._load (node:internal/modules/cjs/loader:841:27)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/Users/seungyuncho/Downloads/notus-nextjs-main/node_modules/tailwindcss/lib/util/processPlugins.js:12:36) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
스크린샷 2022-11-30 오후 7 00 22
스크린샷 2022-11-30 오후 6 59 51


Solution

Additional comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions