You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a project using Gatsby.js. Lately I upgraded dependencies to their latest version using node 18 from node 16. The upgrade went smoothly until I encountered this error during the build:
ModuleNotFoundError: Module not found: Error: Package path . is not exported from package /Users/.../node_modules/i18n-postal-address (see exports field in /Users/.../node_modules/i18n-postal-address/package.json)
As mentioned, it seems coming from the exports field
I can't figure it out why.
Steps to Reproduce
Add i18n-postal-address as a project dependency yarn add i18-postal-address or npm install i18-postal-address
Lornz-
changed the title
ModuleNotFoundError: Module not found: Error: Package path . is not exported from package
Module not found: Error: Package path . is not exported from package
Apr 26, 2023
Hi there!
I'm working on a project using Gatsby.js. Lately I upgraded dependencies to their latest version using node 18 from node 16. The upgrade went smoothly until I encountered this error during the build:
As mentioned, it seems coming from the exports field
I can't figure it out why.
Steps to Reproduce
yarn add i18-postal-address
ornpm install i18-postal-address
yarn build
ornpm run build
Your Environment
macOS Ventura 13.2.1
VSCode 1.77.3
Yarn 1.22.19
Node.js v18.12.1
React 18.2.0
Gatsby 5.9.0
The text was updated successfully, but these errors were encountered: