-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
I was trying to use @umami/api-client in my application built with Nuxt 3 but I cannot even get started with getClient. The page won't load correctly if I called getClient somewhere. Deleting the calls will bring the page back.
What Nuxt gave me after I added the getClient call and reloaded the page:
Cannot find module 'react'
Require stack:
- node_modules/.store/[email protected]/node_modules/next-basics/dist/cjs/index.js
- node_modules/.store/@[email protected]/node_modules/@umami/api-client/dist/cjs/index.js"
at Function._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Function._load (node:internal/modules/cjs/loader:1051:27)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (./node_modules/.store/[email protected]/node_modules/next-basics/dist/cjs/index.js:1:75)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Object..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Function._load (node:internal/modules/cjs/loader:1104:12)
at Module.require (node:internal/modules/cjs/loader:1311:19)
I can't figured out why it's related to React, and the problem won't go away even if I installed react@latest as dependency (this sounds not right though). The Requirements in the doc only points out that >= 18.18 Node.js environment should be present. I didn't seem to find anything to do with React.
Anybody can help?
Metadata
Metadata
Assignees
Labels
No labels