g-plane / cue Goto Github PK
View Code? Open in Web Editor NEWLibrary for processing Cue Sheet.
License: MIT License
Library for processing Cue Sheet.
License: MIT License
I'm not entirely sure why, but the fact that package.json
has an exports
property and not a main
property is breaking Jest for me.
My imports look like this:
import {
File as CueFile, parse, Track, TrackDataType,
} from '@gplane/cue';
and I'm running Jest like this:
node --experimental-vm-modules ./node_modules/jest/bin/jest.js --verbose
and I'm getting the TypeScript error:
error TS2307: Cannot find module '@gplane/cue' or its corresponding type declarations.
8 } from '@gplane/cue';
~~~~~~~~~~~~~
If I remove the exports
property and replace it with "main": "./dist/index.js"
the problem goes away for me.
It seems to only be Jest, I'm able to run my app fine like this:
node --loader ts-node/esm index.ts
Some version info:
Node.js v20.11.1
TypeScript v5.3.3
jest
v29.7.0
ts-jest
v10.9.2
With a fairly vanilla tsconfig.json
:
{
"compilerOptions": {
"target": "es6",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"module": "node16",
"moduleResolution": "node16",
"declaration": true,
"sourceMap": true,
"outDir": "./dist",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
},
"ts-node": {
"esm": true,
"experimentalSpecifierResolution": "node",
}
}
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.