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
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
170
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
360
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
220
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
430
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
180
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
110
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
120
Discover your Explorer Soul
emna__ayadi
2
1.1k
Claude Code のすすめ
schroneko
67
220k
Side Projects
sachag
455
43k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
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