You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add a esmodule target I get this error. After debugging, I realized this line in Parcel returns true. As far as I know, Nodejs supports Dynamic imports natively.
@parcel/runtime-js: No import() polyfill available for context 'node'
Error: Noimport()polyfillavailableforcontext'node'atnullthrows(.../setup-cpp/node_modules/.pnpm/nullthrows@1.1.1/node_modules/nullthrows/nullthrows.js:7:15)atgetLoaderRuntime(.../setup-cpp/node_modules/.pnpm/@parcel+runtime-js@2.0.0-canary.1720_@parcel+core@2.0.0-canary.1718_@swc+helpers@0.5.12_/node_modules/@parcel/runtime-js/lib/JSRuntime.js:360:42)atObject.apply(.../setup-cpp/node_modules/.pnpm/@parcel+runtime-js@2.0.0-canary.1720_@parcel+core@2.0.0-canary.1718_@swc+helpers@0.5.12_/node_modules/@parcel/runtime-js/lib/JSRuntime.js:171:29)atapplyRuntimes(.../setup-cpp/node_modules/.pnpm/@parcel+core@2.0.0-canary.1718_@swc+helpers@0.5.12/node_modules/@parcel/core/lib/applyRuntimes.js:114:44)atasyncBundlerRunner.bundle(.../setup-cpp/node_modules/.pnpm/@parcel+core@2.0.0-canary.1718_@swc+helpers@0.5.12/node_modules/@parcel/core/lib/requests/BundleGraphRequest.js:334:25)atasyncObject.run(.../setup-cpp/node_modules/.pnpm/@parcel+core@2.0.0-canary.1718_@swc+helpers@0.5.12/node_modules/@parcel/core/lib/requests/BundleGraphRequest.js:132:17)atasyncRequestTracker.runRequest(.../setup-cpp/node_modules/.pnpm/@parcel+core@2.0.0-canary.1718_@swc+helpers@0.5.12/node_modules/@parcel/core/lib/RequestTracker.js:784:20)atasyncObject.run(.../setup-cpp/node_modules/.pnpm/@parcel+core@2.0.0-canary.1718_@swc+helpers@0.5.12/node_modules/@parcel/core/lib/requests/ParcelBuildRequest.js:52:7)atasyncRequestTracker.runRequest(.../setup-cpp/node_modules/.pnpm/@parcel+core@2.0.0-canary.1718_@swc+helpers@0.5.12/node_modules/@parcel/core/lib/RequestTracker.js:784:20)atasyncParcel._build(.../setup-cpp/node_modules/.pnpm/@parcel+core@2.0.0-canary.1718_@swc+helpers@0.5.12/node_modules/@parcel/core/lib/Parcel.js:369:11)
🐛 bug report
If I add a
esmodule
target I get this error. After debugging, I realized this line in Parcel returnstrue
. As far as I know, Nodejs supports Dynamic imports natively.🎛 Configuration (.babelrc, package.json, cli command)
The
modern
config fails.https://github.com/aminya/setup-cpp/tree/modern
🤔 Expected Behavior
Not sure why
isLibrary
matters here in determining the dynamic import support. But it could be related.😯 Current Behavior
💁 Possible Solution
🔦 Context
💻 Code Sample
https://github.com/aminya/setup-cpp/tree/modern
aminya/setup-cpp#265
🌍 Your Environment
The text was updated successfully, but these errors were encountered: