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.

'Use of eval is strongly discouraged' warning in rollup

See original GitHub issue

When using rollup to package a component that references react-paginate, it spits out the following warning:

(!) Use of eval is strongly discouraged https://rollupjs.org/guide/en/#avoiding-eval node_modules/react-paginate/dist/react-paginate.js

I am using version 8.1.3.

Any ideas? Thank you!

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MonsieurVcommented, Nov 5, 2022

I removed it (trying to replace it by react-refresh in dev). No more eval in the build indeed. Thanks @silverwind.

@AdeleD can you release https://github.com/AdeleD/react-paginate/releases/tag/v8.1.4? Thx

1reaction
silverwindcommented, Nov 3, 2022

The problem comes from react-hot-loader. With it removed, there is no more eval in the compiled file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rollup warnings "Use of eval is strongly discouraged" #147
Describe the bug Rollup emits multiple warnings from this library, most importantly: (!) Use of eval is strongly discouraged ...
Read more >
Firebase ionic2-rc0 and rollup - “rollup: Use of `eval` is ...
You can disable this warning in rollup config: ... is strongly discouraged/.test(message)) { return; } console.error(message); } };.
Read more >
Use Of Eval Is Strongly Discouraged, As It Posses Security Risks
Using Rollup throws errors about dependency Rubberduck using eval. of eval is strongly discouraged as it poses security risks and may cause issues...
Read more >
Using OneSDK with Rollup - API docs - FrankieOne
Use of eval is strongly discouraged. This warning comes from an internal library from one of our biometrics providers that uses the
Read more >
rollup: Use of `eval` is strongly discouraged - Ionic Forum
Firebase ionic2-rc0 and rollup - "rollup: Use of `eval` is strongly discouraged" ... Anyone has seen this error with rollup? ... Got the...
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