metafloor
metafloor
Are you using a modern version of the typescript compiler/bundler? It appears your version does not understand the `exports` map in `package.json`.
Interesting that the code works. The actual issue is the compiler failing to find the types declaration. Looking more in depth at the [typescript docs](https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-exports), this caught my eye: >...
That pretty much proves the compiler is not using the exports map for module resolution. Possibly you have an out-of-date config file that is preventing the compiler from using it?...
@z1haze : Please post a zip of a minimal app that exhibits the behavior. Make sure it includes the configuration file(s) you are using. I will try to get this...
This was an interesting rabbit hole to go down. Not sure what the expo package is (not a react-native developer), but its `tsconfig.base.json` is setting `moduleResolution:node`, which prevents using `exports`...
Alternatively, you can use the explicit `import bwipjs from 'bwip-js/react-native'` and omit the custom condition in `tsconfig.json`: ``` { "extends": "expo/tsconfig.base", "compilerOptions": { "strict": true, "module":"node16", "moduleResolution":"node16" } } ```...
The difference between bwip-js and other packages is that there are three separate platform targets: browser, node, and react-native. And actually four since there is a generic svg-only target as...
I have BWIPP 2024-01-03 queued up on my machine right now. Will release it this weekend after final testing.
The new border drawing code is causing some issues. I am not happy with how it is rendering. Will investigate further on Monday.
Hijacking this issue to announce version 4.3 is out - it is essentially a sync with BWIPP 2024-01-03. No bug fixes or enhancements are included. There were some pretty significant...