Doesn't work in webpack: Can't resolve '../xlsx.js'
See original GitHub issuelook this:
WARNING in ./~/xlsx/ods.js
Module not found: Error: Can't resolve '../xlsx.js' in 'F:\gittest\js-office-demo\node_modules\xlsx'
@ ./~/xlsx/ods.js 10:9-30
@ ./~/xlsx/xlsx.js
@ ./src/index.js
ERROR in ./~/xlsx/dist/cpexcel.js
Module not found: Error: Can't resolve './cptable' in 'F:\gittest\js-office-demo\node_modules\xlsx\d
ist'
@ ./~/xlsx/dist/cpexcel.js 808:16-41
@ ./~/xlsx/xlsx.js
@ ./src/index.js
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Error on webpack: can't resolve 'xlsx'. Bundle is not generated
I am using react-excel-workbook instead of react-data-export. My Webpack is working fine and generating the bundle for production. Share.
Read more >module not found: can't resolve 'fs' in - You.com | The AI ...
Module not found: Can't resolve 'fs' So we understand another thing: the fs usage has to be directly inside the getStaticProps function body,...
Read more >file-loader - webpack - JS.ORG
Function. webpack.config.js module.exports = { module: { rules: [ { test: /\. ... If false, the loader will return a public URI but...
Read more >How to fix 'Module not found: Can't resolve 'http' in ... - YouTube
Basically, just change 'react-scripts' to 4.0.2 in your package.json and run `npm install` again :D Follow me on Twitter: ...
Read more >NPM packages for React webpart SharePoint Online try to ...
fs is for an underlying feature of exceljs and many other nodeJS modules that don't work inside a React.JS App. If you need...
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
install the following package it’s working npm install xlsx
Failed to compile.
./node_modules/tempa-xlsx/ods.js Module not found: Can’t resolve ‘xlsx’ in ‘D:\OFFICE\workspace\geo\node_modules\tempa-xlsx’
please can solve this issue I am not getting what to do???