Open ucanfil opened 1 year ago
Thanks for the report. It'll be a little bit until I can dig into this in some detail but is very weird.
Can you provide your tsconfig.json
file for reference since I'm assuming that that might be part of the source of the "error". Or if you have any other babel settings of note.
Hey @koblas, thanks for checking! Here is my tsconfig: (There is no custom babel config)
{
"compilerOptions": {
"target": "es6",
"module": "esnext",
"outDir": "build",
"rootDir": "src",
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"useUnknownInCatchVariables": false,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react",
},
"include": [
"src"
],
"exclude": [
"node_modules"
]
}
This might be relevant -> https://github.com/facebook/create-react-app/pull/11752
**Also if you don't have time and this happens to be a fault on lib side I'd like to contribute if I can, thanks!
Thanks for the great library!
This is not a breaking issue for me but I had to post this as an issue since there is no discussions tab in the repo. Using stdnum-js latest version with CRA v5.0.1 by importing
import { stdnum } from 'stdnum';
and getting a bunch of warnings, for ex.:Is this due to CRA or due to the library I wonder 🤔, much appreciated if you can provide some answer, cheers!