Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Cannot get started in Nuxt 3

オープン
#20 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
32/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
nuxtjs, react, typescript
領域
api, frontend

調査の方向性

Start by reproducing the Nuxt 3 failure with getClient and inspect @umami/api-client/dist/cjs/index.js and its next-basics require stack. Compare the behavior with the API client requirements documentation; done means a Nuxt 3 page can load with getClient without requiring React or an undocumented dependency.

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
TypeScript
スター
47
フォーク
18
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

umami-software/api-client のほかの issue

umami-software/api-client の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。