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
It works fine at dev environment: http://localhost:3000/api/healthcheck
But when it builds, there is warnings:
"[path]/modules/custom-module-name/dist/runtime/server/api/healthcheck.get.ts" is imported by "virtual:#internal/nitro/virtual/server-handlers", but could not be resolved – treating it as an external dependency.
Additional context
No response
Logs
packages/package-name build: [nuxt] pages:extend: 0.188ms
packages/package-name build: [nuxt] build:manifest: 15.374ms
packages/package-name build: [nuxt] vite:compiled: 0.013ms
packages/package-name build: ✔ Server built in 8490ms
packages/package-name build: [nuxt] schema:beforeWrite: 0.02ms
packages/package-name build: [nuxt] schema:written: 0.035ms
packages/package-name build: [nuxt] nitro:build:before: 0.013ms
packages/package-name build: [nitro] ✔ Generated public .output/public
packages/package-name build: [nuxt] nitro:build:public-assets: 0.008ms
packages/package-name build: [nuxt] prerender:routes: 0.003ms
packages/package-name build: [nitro] prerender:routes: 0.08ms
packages/package-name build: [nitro] rollup:before: 0.011ms
packages/package-name build: [nitro] ℹ Building Nitro Server (preset: node-server)
packages/package-name build: "/Users/kzotov/projects/project-name/modules/custom-module-name/dist/runtime/server/api/healthcheck.get.ts" is imported by "virtual:#internal/nitro/virtual/server-handlers", but could not be resolved – treating it as an external dependency.
The text was updated successfully, but these errors were encountered:
Environment
Operating System:
Darwin
Node Version:
v18.13.0
Nuxt Version:
3.4.2
(But same with 3.5.1)Nitro Version:
2.3.3
Package Manager:
pnpm@8.4.0
Builder:
vite
User Config:
modules
Runtime Modules:
nuxt-icon@0.4.0
,@pinia/nuxt@0.4.9
Build Modules: -
Reproduction
I have a monorepo with custom modules and some packages
At the packages i've using custom module, which contains
module/custom-module-name/server/api/healthcheck.get.ts
file.Module setup file
modules/custom-module-name/src/module.ts
:healthcheck.get.ts
:Describe the bug
It works fine at dev environment:
http://localhost:3000/api/healthcheck
But when it builds, there is warnings:
"[path]/modules/custom-module-name/dist/runtime/server/api/healthcheck.get.ts" is imported by "virtual:#internal/nitro/virtual/server-handlers", but could not be resolved – treating it as an external dependency.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: