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.

Cannot rollup a minimal application including 'react-data-table'

See original GitHub issue

Describe the bug

If you create a trivial application and add “react-data-table-component” module it fails to rollup. It works in dev mode though

Reproduction

Steps:

  1. npm init @vitejs/app
  2. npm install react-data-table-component
  3. change source to import it
  4. npm run build

error during build: Error: Transform failed with 1 error: assets/vendor.34901b56.js:1323:2731: error: Expected identifier but found "("

repo: https://github.com/schikin/vite-react-data-table

System Info

Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:

  System:
    OS: Windows 10 10.0.19042
    CPU: (20) x64 Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz
    Memory: 8.06 GB / 31.86 GB
  Binaries:
    Node: 14.15.4 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 7.5.6 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.423.0), Chromium (90.0.818.62)
    Internet Explorer: 11.0.19041.1
  npmPackages:
    vite: ^2.3.0 => 2.3.2

Used package manager: npm

Logs

Before submitting the issue, please make sure you do the following

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sodateacommented, May 25, 2021

Bug in Rollup optimization. I’ll raise an issue there.

0reactions
github-actions[bot]commented, Jul 16, 2021

This issue has been locked since it has been closed for more than 14 days.

If you have found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Vite version. If you have any other comments you should join the chat at Vite Land or create a new discussion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

3 Dependencies - react-data-table-component - npm
A simple to use declarative react based data table. Latest version: 7.5.3, last published: 7 days ago.
Read more >
Compiling React component with rollup is returning webpack ...
But when i want to import my component into another app, i have thoses errors concerning webpack but from where it come from...
Read more >
Roll-Up Summary Field - Salesforce Help
You can perform different types of calculations with a roll-up summary field. ... Or, you can calculate the sum, minimum value, or maximum...
Read more >
Using React components in your Ember app - Medium
Doing so will help keep these components simple. Create a file app/react-component.js with the following content. First let's create ...
Read more >
Rollup Helper Admin Guide | Salesforce App Help
If checked, Rollup Helper will only include unique source records by source field ... when the rollup aggregation type selected is “Maximum” or...
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