Comments (5)
This is probably related to Webpack 5. See: https://blog.sindresorhus.com/webpack-5-headache-b6ac24973bf1
I would recommend asking on https://github.com/webpack/webpack/issues or https://github.com/angular/angular/issues instead.
from internal-ip.
@sindresorhus that's weird since I am using Angular 10.2.0, Webpack 4.44.1 If I am right. I was looking at the package.json of webpack module itself in node_modules/webpack which was 4.44.1. So unless I was looking at the wrong part I don't know why this would be an issue then??
I even went ahead and test it with Angular 9 and this is still the case any ideas?
from internal-ip.
Regardless, this is not the place to ask build-specific questions. This is a problem with the Angular builder or the config you use with it.
from internal-ip.
Hi, I have found out why this is not working in Angular, this is because it is using require which is not supported in browsers. Is it possible to change the documentation and mention that the provided code cannot be used client side since it doesn't support require and can only be used server side. That way you won't have other users asking why they can't use it client side.
It should be possible though to use Requirejs to replace the server side Require, but I don't know how to do this and I can't figure it out for an Angular project.
Anyways I was hoping to use this in my Angular project for a device management system but since this was the only module left to explore for an easy to use setup. Guess I'll have to do some back and forth configuring then, so I can make it work.
Thanks for the help!
from internal-ip.
This module only works in Node, there's no sense in trying to make it work in browsers. See #32 for possible browser support.
from internal-ip.
Related Issues (20)
- sync methods still relevant HOT 5
- Remove fallbacks to ::1 or 127.0.0.1 HOT 5
- require('internal-ip').v4.sync() returns null HOT 2
- use sync() with import ? HOT 1
- Don't skip IPv4 tests on Travis HOT 3
- AIX as OS support HOT 1
- Support the case of default gateway outside any subnet HOT 1
- Browser support HOT 5
- Not working on angular 8.3.20 on windows 10 HOT 2
- Report an error in my Electron-Vue
- Can we use this in angular web application HOT 1
- Need support commonjs! HOT 1
- Issue with the node:os import. HOT 1
- internalIp.v4 is not a function HOT 1
- Must use import to load ES Module: /usr/src/app/node_modules/internal-ip/index.js HOT 1
- Can't get IP Address on Windows 11
- latest edtion not support CommonJS/AMD Modular specification HOT 1
- v8.0.0 always returns *.*.*.0 instead of actual IP HOT 5
- Remove `default-gateway` dependency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from internal-ip.