Error by importing the project
See original GitHub issueHello,
I’m trying to use this exciting library. After installing the react-data-export package in my existing react application I get an error when I import the package by using import ReactExport from 'react-data-export';
I have the following error.
../framework/~/tempa-xlsx/xlsx.js
Module not found: Error: Cannot resolve module 'fs' in /home/ogodon/projects/framework/node_modules/tempa-xlsx
resolve module fs in /home/ogodon/projects/framework/node_modules/tempa-xlsx
looking for modules in /home/ogodon/projects/company/node_modules
/home/ogodon/projects/company/node_modules/fs doesn't exist (module as directory)
resolve 'file' fs in /home/ogodon/projects/company/node_modules
resolve file
Module fs cannot be found. So my question would be : is this package only meant to be used on a server context ?
Thank you for your time.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Project import errors – Support Portal | Snyk
This error appears if the imported repository contains HCL version 1 files. Snyk only supports HCL version 2, used from Terraform version 0.12+....
Read more >Error when importing a project from an exported GitLab project
Steps to reproduce Export a project on GitLab.com and then attempt import a new project using the export file.
Read more >Project 2010: Error, "an import error occurred" opening
The “import” errors are correct because when you open the project, it is “importing” the data from the MPP file into the internal...
Read more >Error 'The Project Was Not Imported Because ... - Oracle Support
1. The project was not imported because import errors exist for the project team members. 2. You can access this project only in...
Read more >Project Import error using Project Configurator Plug-In
In order to work around this error you should review the Kanban board in the source instance and locate the query which contains...
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
@xariaSg
npm install xlsx --save
solved it for me.Hi @ogodon, you need to explicitly define
fs
in configuration file, for example, in case of webpack, add following lines to yourwebpack.config.js
file,Hope that will help.