bent10 / json-loose Goto Github PK
View Code? Open in Web Editor NEWTransforms loosely structured plain object strings into valid JSON strings.
Home Page: https://www.npmjs.com/package/json-loose
License: MIT License
Transforms loosely structured plain object strings into valid JSON strings.
Home Page: https://www.npmjs.com/package/json-loose
License: MIT License
/home/d9k/.nvm/versions/node/v20.8.0/bin/node --nolazy -r ts-node/register/transpile-only parse-supabase-generated-types-with-babel.ts
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/d9k/cr/pr/examples/ts/supabase-demo/node_modules/.pnpm/[email protected]/node_modules/json-loose/dist/index.cjs.js from /home/d9k/cr/pr/examples/ts/supabase-demo/parse-supabase-generated-types-with-babel.ts not supported.
index.cjs.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.
Instead either rename index.cjs.js to end in .cjs, change the requiring code to use dynamic import() which is available in all CommonJS modules, or change "type": "module" to "type": "commonjs" in /home/d9k/cr/pr/examples/ts/supabase-demo/node_modules/.pnpm/[email protected]/node_modules/json-loose/package.json to treat all .js files as CommonJS (using .mjs for all ES modules instead).
at Object.<anonymous> (/home/d9k/cr/pr/examples/ts/supabase-demo/parse-supabase-generated-types-with-babel.ts:33:38)
at Module._compile (/home/d9k/cr/pr/examples/ts/supabase-demo/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/dist/index.js:857:29)
at Object..ts (/home/d9k/cr/pr/examples/ts/supabase-demo/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/ts-node/dist/index.js:859:16) {
code: 'ERR_REQUIRE_ESM'
}
Process exited with code 1
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.github/workflows/pr-title.yml
actions/checkout v4
clowdhaus/actions v0.4.0
.github/workflows/release.yml
actions/checkout v4
actions/setup-node v4
.github/workflows/validate.yml
actions/checkout v4
actions/setup-node v4
package.json
moo ^0.5.2
@types/moo 0.5.9
doogu 3.2.13
vite-plugin-resolve-umd-format 1.0.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.