Comments (6)
@samhh yep
from fp-ts-std.
Probably related to this in the README:
fp-ts-std is published with both ESM and CJS modules. The import paths in either case needn't change and the appropriate module resolution should be picked up by Node and your bundler, however if your environment doesn't support conditional exports you'll need to import directly from a dist/(cjs|esm)/ subdirectory. Given ESM modules the library should tree shake well.
What versions of Webpack and TypeScript are you using?
from fp-ts-std.
webpack: 4.44.2
typescript: ^5.0.2
from fp-ts-std.
I may be wrong but I think only Webpack 5 supports conditional exports. You'll need to upgrade or import from the relevant subdirectory directly.
from fp-ts-std.
In my setup eslint is failing with the same error.
from fp-ts-std.
@Mati365 Is that eslint-plugin-import?: import-js/eslint-plugin-import#1810
from fp-ts-std.
Related Issues (20)
- More tuple operators HOT 1
- Unwrapping errors should always throw an `Error` object HOT 3
- fp-ts backports HOT 2
- get for struct
- Monadic memptyWhen/Unless HOT 1
- Do & apS HOT 1
- `pass` HOT 1
- `Struct.getEnum`
- `pass` doesn't widen additional type arguments HOT 1
- Real ESM support HOT 9
- process module
- Many URLPath functions should exist in URL too HOT 1
- `N.fromString()` should not use `Number.parseInt()` HOT 2
- URLPath origin/base can be lost HOT 1
- As compared to Ramda: equals - checkmark should probably be unchecked HOT 2
- Split S.merge into mergeFirst and mergeSecond
- URLPath.clone HOT 1
- Sub-100% coverage
- `URLPath.fromString` parses its arguments as a relative reference rather than a path. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fp-ts-std.