Giter Club home page Giter Club logo

Comments (10)

alcidesqueiroz avatar alcidesqueiroz commented on June 9, 2024 3

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.

 avatar commented on June 9, 2024 3

@AhsanAyaz yes I can, it should be a quick fix and I'll submit a PR today or tomorrow.

from ngx-device-detector.

 avatar commented on June 9, 2024

looks like the request, response tokens are now exposed like this: import {REQUEST} from '@nguniversal/express-engine'

from ngx-device-detector.

AhsanAyaz avatar AhsanAyaz commented on June 9, 2024

@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.

doronsever avatar doronsever commented on June 9, 2024

Any news?

from ngx-device-detector.

AhsanAyaz avatar AhsanAyaz commented on June 9, 2024

Can you guys try now with the latest release 1.2.1?

from ngx-device-detector.

DuncanFaulkner avatar DuncanFaulkner commented on June 9, 2024

I had just hit the same error and this seems to have fixed the issue for me, cheers

from ngx-device-detector.

AhsanAyaz avatar AhsanAyaz commented on June 9, 2024

Thanks for confirming @DuncanFaulkner .
I'm closing this issue for now.
Feel free to re-open if this persists.

from ngx-device-detector.

BBoyBreaker avatar BBoyBreaker commented on June 9, 2024

Same error with version 1.2.1, i am using ngx-rocket

from ngx-device-detector.

pauloinfotec avatar pauloinfotec commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.