Comments (10)
Reverting and locking @nguniversal/express-engine
to version 5.0.0-beta.5
worked here, though it seems a bit hackish to me.
from ngx-device-detector.
@AhsanAyaz yes I can, it should be a quick fix and I'll submit a PR today or tomorrow.
from ngx-device-detector.
looks like the request, response tokens are now exposed like this: import {REQUEST} from '@nguniversal/express-engine'
from ngx-device-detector.
@alcidesqueiroz certainly. That can be a temporary solution but not a permanent one.
@brendanairvuz would you be able to look into this issue anytime soon?
from ngx-device-detector.
Any news?
from ngx-device-detector.
Can you guys try now with the latest release 1.2.1
?
from ngx-device-detector.
I had just hit the same error and this seems to have fixed the issue for me, cheers
from ngx-device-detector.
Thanks for confirming @DuncanFaulkner .
I'm closing this issue for now.
Feel free to re-open if this persists.
from ngx-device-detector.
Same error with version 1.2.1, i am using ngx-rocket
from ngx-device-detector.
Same error happens yet. I'm using angular 5. Follow below error log:
ERROR in ./node_modules/@nguniversal/express-engine/src/main.js
Module not found: Error: Can't resolve '@angular/platform-server' in 'D:\workspace\talentos\frontend\node_modules@nguniversal\express-engine\src'
resolve '@angular/platform-server' in 'D:\workspace\talentos\frontend\node_modules@nguniversal\express-engine\src'
Parsed request is a module
using description file: D:\workspace\talentos\frontend\node_modules@nguniversal\express-engine\package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
after using description file: D:\workspace\talentos\frontend\node_modules@nguniversal\express-engine\package.json (relative path: ./src)
resolve as module
D:\workspace\talentos\frontend\node_modules@nguniversal\express-engine\src\node_modules doesn't exist or is not a directory
D:\workspace\talentos\frontend\node_modules@nguniversal\express-engine\node_modules doesn't exist or is not a directory
D:\workspace\talentos\frontend\node_modules@nguniversal\node_modules doesn't exist or is not a directory
D:\workspace\talentos\frontend\node_modules\node_modules doesn't exist or is not a directory
D:\workspace\talentos\node_modules doesn't exist or is not a directory
D:\workspace\node_modules doesn't exist or is not a directory
D:\node_modules doesn't exist or is not a directory
looking for modules in D:\workspace\talentos\frontend\node_modules
using description file: D:\workspace\talentos\frontend\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: D:\workspace\talentos\frontend\package.json (relative path: ./node_modules)
using description file: D:\workspace\talentos\frontend\package.json (relative path: ./node_modules/@angular/platform-server)
no extension
Field 'browser' doesn't contain a valid alias configuration
D:\workspace\talentos\frontend\node_modules@angular\platform-server doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
D:\workspace\talentos\frontend\node_modules@angular\platform-server.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
D:\workspace\talentos\frontend\node_modules@angular\platform-server.js doesn't exist
as directory
D:\workspace\talentos\frontend\node_modules@angular\platform-server doesn't exist
looking for modules in D:\workspace\talentos\frontend\node_modules
using description file: D:\workspace\talentos\frontend\package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: D:\workspace\talentos\frontend\package.json (relative path: ./node_modules)
using description file: D:\workspace\talentos\frontend\package.json (relative path: ./node_modules/@angular/platform-server)
no extension
Field 'browser' doesn't contain a valid alias configuration
D:\workspace\talentos\frontend\node_modules@angular\platform-server doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
D:\workspace\talentos\frontend\node_modules@angular\platform-server.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
D:\workspace\talentos\frontend\node_modules@angular\platform-server.js doesn't exist
as directory
D:\workspace\talentos\frontend\node_modules@angular\platform-server doesn't exist
looking for modules in D:\workspace\talentos\frontend\src
using description file: D:\workspace\talentos\frontend\package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
after using description file: D:\workspace\talentos\frontend\package.json (relative path: ./src)
using description file: D:\workspace\talentos\frontend\package.json (relative path: ./src/@angular/platform-server)
no extension
Field 'browser' doesn't contain a valid alias configuration
D:\workspace\talentos\frontend\src@angular\platform-server doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
D:\workspace\talentos\frontend\src@angular\platform-server.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
D:\workspace\talentos\frontend\src@angular\platform-server.js doesn't exist
as directory
D:\workspace\talentos\frontend\src@angular\platform-server doesn't exist
looking for modules in D:\workspace\talentos\frontend\src
using description file: D:\workspace\talentos\frontend\package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
after using description file: D:\workspace\talentos\frontend\package.json (relative path: ./src)
using description file: D:\workspace\talentos\frontend\package.json (relative path: ./src/@angular/platform-server)
no extension
Field 'browser' doesn't contain a valid alias configuration
D:\workspace\talentos\frontend\src@angular\platform-server doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
D:\workspace\talentos\frontend\src@angular\platform-server.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
D:\workspace\talentos\frontend\src@angular\platform-server.js doesn't exist
as directory
D:\workspace\talentos\frontend\src@angular\platform-server doesn't exist
[D:\workspace\talentos\frontend\node_modules@nguniversal\express-engine\src\node_modules]
[D:\workspace\talentos\frontend\node_modules@nguniversal\express-engine\node_modules]
[D:\workspace\talentos\frontend\node_modules@nguniversal\node_modules]
[D:\workspace\talentos\frontend\node_modules\node_modules]
[D:\workspace\talentos\node_modules]
[D:\workspace\node_modules]
[D:\node_modules]
[D:\workspace\talentos\frontend\node_modules@angular\platform-server]
[D:\workspace\talentos\frontend\node_modules@angular\platform-server.ts]
[D:\workspace\talentos\frontend\node_modules@angular\platform-server.js]
[D:\workspace\talentos\frontend\node_modules@angular\platform-server]
[D:\workspace\talentos\frontend\node_modules@angular\platform-server]
[D:\workspace\talentos\frontend\node_modules@angular\platform-server.ts]
[D:\workspace\talentos\frontend\node_modules@angular\platform-server.js]
[D:\workspace\talentos\frontend\node_modules@angular\platform-server]
[D:\workspace\talentos\frontend\src@angular\platform-server]
[D:\workspace\talentos\frontend\src@angular\platform-server.ts]
[D:\workspace\talentos\frontend\src@angular\platform-server.js]
[D:\workspace\talentos\frontend\src@angular\platform-server]
[D:\workspace\talentos\frontend\src@angular\platform-server]
[D:\workspace\talentos\frontend\src@angular\platform-server.ts]
[D:\workspace\talentos\frontend\src@angular\platform-server.js]
[D:\workspace\talentos\frontend\src@angular\platform-server]
@ ./node_modules/@nguniversal/express-engine/src/main.js 6:24-59
@ ./node_modules/@nguniversal/express-engine/index.js
@ ./node_modules/ngx-device-detector/ngx-device-detector.umd.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts
webpack: Failed to compile.
from ngx-device-detector.
Related Issues (20)
- [MISSING DEVICE] HUAWEI AGS-L09 The device is defined as mobile, but it should be a tablet HOT 2
- Jest encountered an unexpected token - SyntaxError: Unexpected token 'export' HOT 1
- always detected as mobile in inspect element HOT 2
- [MISSING DEVICE] - Decvice (POCO X3 NFC - OS(Android 11)
- Support Angular 15 HOT 5
- Angular 15 compatibility HOT 6
- IOS os_version should give specific version number
- [MISSING DEVICE] Samsung Galaxy Tab S7+ detected as Phone instead of Tablet HOT 3
- Detect Brave Browser
- Invalid OS for Windows 11 HOT 2
- Invalid device shows in android & iPad devices.
- [MISSING DEVICE] Samsung Galaxy tab s8
- Support Angular 16 HOT 2
- `orientation` is not reliably set
- Samsung s9 X11 Tablet is not registered
- Release version for Angular 17 HOT 2
- Improve type for Browsers
- Incompatibility with @angular/ssr HOT 1
- Different detection from dev to prod HOT 3
- Incompatibility with prerender routes
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 ngx-device-detector.