Cannot rollup a minimal application including 'react-data-table'
See original GitHub issueDescribe 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:
- npm init @vitejs/app
- npm install react-data-table-component
- change source to import it
- 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:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top 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 >
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 Free
Top 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
Bug in Rollup optimization. I’ll raise an issue there.
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.