├── test.mjs
└── test2.mjs
この構成で、node test.mjs
を実行する際のインポートは、
test.mjs
import "test2.mjs" // だめ
import "./test2.mjs" // OK
├── test.mjs
└── test2.mjs
この構成で、node test.mjs
を実行する際のインポートは、
import "test2.mjs" // だめ
import "./test2.mjs" // OK
Register as a new user and use Qiita more conveniently