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
When user builds a NextJS project and utilizes the provided configuration the page pre-rendering & typeCheck will fail will fail due to an undefined property as outlined in the error below.
NOTE, there are other Typechecking issues with NextJS and Browserlist, but I have removed that dependency and config to rule that out.
Compilation Error
⨯ TypeError: Cannot read properties of undefined (reading 'xs') ```
### NextJS Config
## NextJS Config
``` experimental: {
optimizePackageImports: ['@storefront-ui/react'], ```
### Expected behavior
TypeChecking would be performed successfully
### Steps to reproduce
1. Install Next v14.1+
2. Install @storefront-iu/react as a dependency
3. Set the NextJS config file to utilize the following configs
Describe the Bug
When user builds a NextJS project and utilizes the provided configuration the page pre-rendering & typeCheck will fail will fail due to an undefined property as outlined in the error below.
NOTE, there are other Typechecking issues with NextJS and Browserlist, but I have removed that dependency and config to rule that out.
Compilation Error
experimental: {
optimizePackageImports: ['@storefront-ui/react'],
transpilePackages: ['@storefront-ui/react'], // transpile and bundle dependencies from local packages
Able to fix / change the documentation?
Code of Conduct
The text was updated successfully, but these errors were encountered: