Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
50
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Node.js Subpath imports
nikawa2161
February 24, 2026
Transcript
20 slides
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
More Decks by nikawa2161
See All by nikawa2161
Sagaパターン入門(続編)
nikawa2161
0
59
Sagaパターン入門
nikawa2161
0
85
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
44
20251209_プログラミング原則の学び
nikawa2161
0
47
自分のコードを数年ぶりに読んだら
nikawa2161
0
29
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
49
oEmbedとは?
nikawa2161
0
280
はじめまして、にかわです
nikawa2161
0
34
課題を映す問題空間と、答えを描く解決空間
nikawa2161
0
33
Featured
See All Featured
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
390
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k
Balancing Empowerment & Direction
lara
6
1.4k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.3k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
330
Navigating Team Friction
lara
192
16k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.3k
Producing Creativity
orderedlist
PRO
348
41k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
680
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
480
Un-Boring Meetings
codingconduct
0
510
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
360