Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build): sync-ts-config script needs import assertion of type json #2163

Closed
petermetz opened this issue Sep 20, 2022 · 2 comments · Fixed by #2164
Closed

fix(build): sync-ts-config script needs import assertion of type json #2163

petermetz opened this issue Sep 20, 2022 · 2 comments · Fixed by #2164
Assignees
Labels
bug Something isn't working dependencies Pull requests that update a dependency file Developer_Experience P2 Priority 2: High

Comments

@petermetz
Copy link
Contributor

When the TS config syncing script is executed, it crashes like this:

My NodeJS version is: v16.14.2

$ yarn sync-ts-config
yarn run v1.22.17
$ TS_NODE_PROJECT=tools/tsconfig.json node --experimental-json-modules --loader ts-node/esm ./tools/sync-npm-deps-to-tsc-projects.ts
(node:1049500) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "file:///.../cactus/lerna.json" needs an import assertion of type "json"
    at new NodeError (node:internal/errors:371:5)
    at validateAssertions (node:internal/modules/esm/assert:82:15)
    at defaultLoad (node:internal/modules/esm/load:24:3)
    at load (/.../cactus/node_modules/ts-node/src/esm.ts:257:43)
    at async ESMLoader.load (node:internal/modules/esm/loader:359:20)
    at async ESMLoader.moduleProvider (node:internal/modules/esm/loader:280:47) {
  code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@petermetz petermetz added bug Something isn't working dependencies Pull requests that update a dependency file Developer_Experience P2 Priority 2: High labels Sep 20, 2022
@aldousalvarez
Copy link
Contributor

Hello @petermetz Can you assign me on this one? Thank you

aldousalvarez added a commit to aldousalvarez/cactus that referenced this issue Sep 26, 2022
Fixes hyperledger-cacti#2163

Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
aldousalvarez added a commit to aldousalvarez/cactus that referenced this issue Sep 28, 2022
Fixes hyperledger-cacti#2163

Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
@petermetz
Copy link
Contributor Author

Hello @petermetz Can you assign me on this one? Thank you

@aldousalvarez Thank you, assigned it to you just now!

aldousalvarez added a commit to aldousalvarez/cactus that referenced this issue Nov 2, 2022
Fixes hyperledger-cacti#2163

Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
aldousalvarez added a commit to aldousalvarez/cactus that referenced this issue Nov 2, 2022
Fixes hyperledger-cacti#2163

Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
aldousalvarez added a commit to aldousalvarez/cactus that referenced this issue Nov 7, 2022
Fixes hyperledger-cacti#2163

Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
aldousalvarez added a commit to aldousalvarez/cactus that referenced this issue Nov 15, 2022
Fixes hyperledger-cacti#2163

Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
aldousalvarez added a commit to aldousalvarez/cactus that referenced this issue Nov 16, 2022
Fixes hyperledger-cacti#2163

Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
aldousalvarez added a commit to aldousalvarez/cactus that referenced this issue Nov 16, 2022
Fixes hyperledger-cacti#2163

Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
aldousalvarez added a commit to aldousalvarez/cactus that referenced this issue Nov 17, 2022
Fixes hyperledger-cacti#2163

Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
petermetz pushed a commit to aldousalvarez/cactus that referenced this issue Nov 17, 2022
Fixes hyperledger-cacti#2163

Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
petermetz pushed a commit to aldousalvarez/cactus that referenced this issue Nov 19, 2022
Fixes hyperledger-cacti#2163

Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
petermetz pushed a commit that referenced this issue Nov 19, 2022
Fixes #2163

Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file Developer_Experience P2 Priority 2: High
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants