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.

Browser build causes webpack warning by using require.extensions

See original GitHub issue

Environments:

  • Prettier Version: 1.18.2
  • Running Prettier via: Browser API
  • Runtime: Node.js 12.11.1 (via webpack)
  • Operating System: macOS

Steps to reproduce:

https://github.com/nickmccurdy/prettier-chrome-extension/tree/bundle-with-webpack

Expected behavior:

No warnings

Actual behavior:

WARNING in ./node_modules/prettier/parser-glimmer.js 1:127549-127567
require.extensions is not supported by webpack. Use a loader instead.
 @ ./ext/src/content/content.js 4:0-52 18:4-17

WARNING in ./node_modules/prettier/parser-glimmer.js 1:127570-127588
require.extensions is not supported by webpack. Use a loader instead.
 @ ./ext/src/content/content.js 4:0-52 18:4-17

WARNING in ./node_modules/prettier/parser-glimmer.js 1:127607-127625
require.extensions is not supported by webpack. Use a loader instead.
 @ ./ext/src/content/content.js 4:0-52 18:4-17

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
lipiscommented, Oct 15, 2019

We are working hard on the 1.19! As soon as possible 😃

1reaction
lydellcommented, Nov 5, 2019

Maybe today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Prevent Webpack Error after npm Install?
The reason for this is that it seems that forking is built-in for Webpack >= 3.0.0 ... the new ForkCheckerPlugin() statement (this time...
Read more >
Module Methods - webpack
This section covers all methods available in code compiled with webpack. When using webpack to bundle your application, you can pick from a...
Read more >
How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >
How to transpile ES modules with webpack and Node.js
ES modules (ESM) are the recommended way for writing code for both Node.js and the browser. Currently, ES modules are supported by all...
Read more >
JavaScript modules - MDN Web Docs
This guide gives you all you need to get started with JavaScript module ... systems like RequireJS, and more recently Webpack and Babel)....
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