|
1
|
If you install the Next.js Starter Storefront with Node v25+, you may encounter the following error when starting the storefront: |
|
2
|
|
|
3
|
```bash |
|
4
|
[TypeError: localStorage.getItem is not a function] |
|
5
|
``` |
|
6
|
|
|
7
|
### Why this Error Occurred |
|
8
|
|
|
9
|
This error occurs because the Next.js Starter Storefront uses Next.js v15.3.8, which doesn't yet support Node v25+. |
|
10
|
|
|
11
|
The error is related to changes in Node v25+ that affect how certain web APIs, like `localStorage`, are handled in server-side environments. |
|
12
|
|
|
13
|
--- |
|
14
|
|
|
15
|
### How to Fix it |
|
16
|
|
|
17
|
Our team is actively working on updating the Next.js Starter Storefront to support Node v25+. In the meantime, you can resolve this error by downgrading your Node.js version to v24 LTS or lower. |