Problem with esrever dependency
See original GitHub issueDo you want to request a feature or report a bug?
Bug
What’s the current behavior?
Slate: “slate”: “^0.58.1”, “slate-history”: “^0.58.1”, “slate-hyperscript”: “^0.58.1”, “slate-react”: “^0.58.1”
Browser: Chrome OS: Mac / Windows / Linux
I am getting an error when trying to build my project:
Error: 'reverse' is not exported by node_modules/esrever/esrever.js, imported by node_modules/slate/dist/index.es.js
It is coming from this line:
import { reverse } from 'esrever';
I am able to fix the issue manually by changing this line to:
import esrever from 'esrever';
const { reverse } from esrever;
This seems functionally the same to me, but it works.
What’s the expected behavior?
The dependency should provide the reverse function and build correctly.
Any help would be greatly appreciated 👍
Issue Analytics
- State:
- Created 3 years ago
- Comments:12
Top Results From Across the Web
esrever (@esrever_25519) / Twitter
esrever. @esrever_25519. Computer psychic, cryptography-rambling oracle. Opinions my own. ... Plus, I learn about hidden subset sum problem!
Read more >Errors on grunt build using google-api-nodejs-client with ...
I'm using https://www.npmjs.com/package/googleapis in a ReactJS Webpack app. It does have a warning that it's an alpha version, so problems are to be...
Read more >Failure to load is-plain-object transitive npm dep - Clojure Q&A
Current master produces a different problem. These errors are now logged: Can't find variable: module. undefined is not an object (evaluating 'module$Users$ ...
Read more >What dependency hell looks like, and how to avoid it
Every developer, when faced with a tricky problem, has experienced the same excitement and temptation: “oooh I bet I could use a library...
Read more >Unable to connect to Postgres 14 database - Issue Tracker
Sorry, we encountered an error and were unable to complete your request. ... “ :lairotut siht fo esrever ;5dm ot drowssap sih detadpu...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is probably the wrong place to ask - as I said I don’t use rollup anymore - please try Slack.
Also note I did say
It depends what you’re doing. It was easy for my team, but the project wasn’t really leveraging advanced rollup capabilities (no React, and we output ES6 so we don’t need babel at all).
The insane performance difference was worth any headaches - we bundle in about 150 milliseconds.