Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Node.js Subpath imports
Search
nikawa2161
February 24, 2026
11
0
Share
Node.js Subpath imports
nikawa2161
February 24, 2026
More Decks by nikawa2161
See All by nikawa2161
Sagaパターン入門(続編)
nikawa2161
0
23
Sagaパターン入門
nikawa2161
0
30
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
24
20251209_プログラミング原則の学び
nikawa2161
0
19
自分のコードを数年ぶりに読んだら
nikawa2161
0
14
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
17
oEmbedとは?
nikawa2161
0
33
はじめまして、にかわです
nikawa2161
0
15
課題を映す問題空間と、答えを描く解決空間
nikawa2161
0
11
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
97
6.6k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8k
It's Worth the Effort
3n
188
29k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.3k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
120
The SEO identity crisis: Don't let AI make you average
varn
0
440
Ruling the World: When Life Gets Gamed
codingconduct
0
190
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Heart Work Chapter 1 - Part 1
lfama
PRO
5
35k
30 Presentation Tips
portentint
PRO
1
270
What's in a price? How to price your products and services
michaelherold
247
13k
Transcript
None
core-api @/
None
core-api import { getCompanyById } from "../../../../../actions/companies/getCompanyById"; @/
dist/ dist src core-api
compilerOptions.paths core-api/tsconfig.json paths
None
@/ // Before import { getCompanyById } from "../../../../../actions/companies/getCompanyById"; //
After import { getCompanyById } from "@/actions/companies/getCompanyById";
tsconfig.json @/* Module not found: Can't resolve '@/actions/companies/...'
None
None
package.json imports tsconfig.json paths # { "imports": { "#*": "./src/*"
} }
None
None
// Before: 深い相対パス import { getCompanyById } from "../../../../../actions/companies/getCompanyById"; //
After: # サブパスインポート import { getCompanyById } from "#actions/companies/getCompanyById/index.ts";
None
# Using 'imports' subpath '#*' with target './src/...'. Module name
'#actions/companies/getCompanyById/index.ts' was successfully resolved to '.../apps/core-api/src/...'
None
compilerOptions.paths @/ package.json imports #* ./src/*
None