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
0
10
Node.js Subpath imports
nikawa2161
February 24, 2026
Tweet
Share
More Decks by nikawa2161
See All by nikawa2161
Sagaパターン入門(続編)
nikawa2161
0
20
Sagaパターン入門
nikawa2161
0
27
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
23
20251209_プログラミング原則の学び
nikawa2161
0
18
自分のコードを数年ぶりに読んだら
nikawa2161
0
12
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
13
oEmbedとは?
nikawa2161
0
24
はじめまして、にかわです
nikawa2161
0
13
課題を映す問題空間と、答えを描く解決空間
nikawa2161
0
10
Featured
See All Featured
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.1k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
43k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
Scaling GitHub
holman
464
140k
Darren the Foodie - Storyboard
khoart
PRO
3
2.9k
How to Think Like a Performance Engineer
csswizardry
28
2.5k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
140
Exploring anti-patterns in Rails
aemeredith
2
290
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
400
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