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.

Consider documenting required webpack configuration

See original GitHub issue

libphonenumbers-js needs:

  • the JSON loader: {test: /\.json$/, loader: 'json'} in config.module.rules

  • '.json' in config.resolve.extensions (perhaps it would be easier to just reference the data file with the full name .min.json)

Note – this is a webpack2 configuration.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
rponnuru0518commented, Jul 10, 2017

Hey Guys, I am trying to use libphonenumber-js in my angular application with webpack 2.2.1, I installed libphonenumber-js through npm and then imported “import { parser, format, asYouType } from ‘libphonenumber-js’;” I get an error message saying cannot find module ‘libphonenumber-js’ Any ideas? I am I missing any steps?

1reaction
aaugustincommented, Dec 13, 2016

We’re in agreement 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - webpack
Out of the box, webpack won't require you to use a configuration file. However, it will assume the entry point of your project...
Read more >
Getting Started With Webpack - Smashing Magazine
The webpack.config.js file doesn't exist yet though. So we need to create it in our application directory and paste the following code below ......
Read more >
Bundling with webpack - Expo Documentation
Learn about different webpack bundler configurations that can be customized.
Read more >
How to Create a Production-Ready Webpack 4 Config From ...
Typically, webpack is configured when a project is first set up, and small tweaks are then made to the config files as needed...
Read more >
Adding a Custom webpack Config - Gatsby
If there's not yet one and your use case is a general one, consider contributing your plugin to the Gatsby Plugin Library so...
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