Describe the bug
Using version 16.7.0 (unreleased on npm, forked from the main branch) and the latest "@stencil/core": "^4.1.0".
I understand there are reasons why this was not published yet, but this issue could be a heads-up. Maybe my setup is wrong and imports are broken for some reason. I could appreciate your help.
While running build target on a stencil library with angular and react output targets, it fails to with an error:
> nx run stencil:build
> NX Cannot use import statement outside a module
/node_modules/@nxext/stencil/src/executors/build/executor.ts:1
import { StencilBuildOptions } from './schema';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1178:20)
at Module._compile (node:internal/modules/cjs/loader:1220:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Object.newLoader [as .ts] (/node_modules/pirates/lib/index.js:121:7)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Function.Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:121:18)
at /node_modules/nx/src/config/schema-utils.js:21:24
To Reproduce
Create nx workspace@16.7.2 with @nx:angular and @nx:react apps and libs.
Describe the bug Using version 16.7.0 (unreleased on npm, forked from the main branch) and the latest "@stencil/core": "^4.1.0". I understand there are reasons why this was not published yet, but this issue could be a heads-up. Maybe my setup is wrong and imports are broken for some reason. I could appreciate your help. While running build target on a stencil library with angular and react output targets, it fails to with an error:
To Reproduce
Expected behavior It should be able to import a schema json file, and cause no console errors.
Additional context