question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with esrever dependency

See original GitHub issue

Do 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:closed
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
TheSpydercommented, May 9, 2021

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

The rollup commonjs plugin has fixed this issue, so namedExports is no longer required. Upgrading will show a warning.

0reactions
TheSpydercommented, May 9, 2021

Briefly skimming through and trying esbuild makes me think this would not be a trivial switch, would it?

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found