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.

Doesn't work in webpack: Can't resolve '../xlsx.js'

See original GitHub issue

look 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:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
maheshitechnotioncommented, Mar 7, 2019

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???

install the following package it’s working npm install xlsx

6reactions
pranaydpcommented, Dec 27, 2018

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???

Read more comments on GitHub >

github_iconTop 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 >

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