Error Code Portal
Node.jsNode.jsError code

ERR_SOURCE_PHASE_NOT_DEFINED

source phase not defined

Code ERR_SOURCE_PHASE_NOT_DEFINED · An issue reported by Node.js.

The provided module import does not provide a source phase imports representation for source phase import syntax import source x from 'x' or import.source(x).

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.