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.

How to use with webpack / react

See original GitHub issue

Hi! I’m seeing Uncaught TypeError: fs.readFileSync is not a function. Any suggestions? Have tried importing from dist in addition to the normal package.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
amilichcommented, May 6, 2021

@amilich yarn add <package name>@git+ssh://<git remote URL>#semver:^3.2.0 this is the format for yarn2, not yarn add url. You have to explicitly specify package name I guess.

Lifted from here yarnpkg/berry#994 (comment)

yarn add html-to-docx@git://github.com/privateOmega/html-to-docx.git#feature/browser-example seems to have worked!

0reactions
privateOmegacommented, Jun 5, 2021

@amilich Please test with latest version 1.2.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use Webpack with React: an in-depth tutorial
Rename the Webpack configuration from webpack.config.js to webpack.config.development.js . Then make a copy and name it webpack.config.
Read more >
Using Webpack with React, Pt. 1
In this Webpack tutorial, we demystify Webpack/React configuration. Go beyond Create React App with Webpack customization tailored to the needs of your app....
Read more >
Setup react with webpack and babel | by Prateek Srivastava
First, we need to install webpack to our project. ... This install 3 packages main webpack package, webpack-cli to run webpack commands and...
Read more >
React setup with webpack for beginners
You can run npm start on your command line to start the application on your local server. Now let's generate bundle.js and see...
Read more >
How to create a React application with Webpack
How to create a React application with Webpack · 1. Create a folder and initialize NPM · 2. Install the following packages ·...
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