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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
nikawa2161
February 24, 2026
0
3
Node.js Subpath imports
nikawa2161
February 24, 2026
Tweet
Share
More Decks by nikawa2161
See All by nikawa2161
Sagaパターン入門(続編)
nikawa2161
0
17
Sagaパターン入門
nikawa2161
0
25
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
22
20251209_プログラミング原則の学び
nikawa2161
0
17
自分のコードを数年ぶりに読んだら
nikawa2161
0
12
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
10
oEmbedとは?
nikawa2161
0
19
はじめまして、にかわです
nikawa2161
0
13
課題を映す問題空間と、答えを描く解決空間
nikawa2161
0
10
Featured
See All Featured
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
90
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
750
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
370
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
460
30 Presentation Tips
portentint
PRO
1
240
Mobile First: as difficult as doing things right
swwweet
225
10k
Leo the Paperboy
mayatellez
4
1.5k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
140
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
Docker and Python
trallard
47
3.7k
A better future with KSS
kneath
240
18k
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