akveo / nebular

:boom: Customizable Angular UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode
https://akveo.github.io/nebular
MIT License
8.06k stars 1.51k forks source link

Window component. Error: Can't resolve '@nebular/theme/components/window/window.options' #2127

Open ArtemRomanovsky opened 4 years ago

ArtemRomanovsky commented 4 years ago

Issue type

I'm submitting a ... (check one with "x")

Issue description

Current behavior:

Just stuck on WindowComponent Context, I am not able to get the context data to another component. Using

@Inject(NB_WINDOW_CONTEXT) context

returns error of Module not found: Error: Can't resolve '@nebular/theme/components/window/window.options' Expected behavior:

Steps to reproduce:

Related code:

insert short code snippets here

Other information:

npm, node, OS, Browser

<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->

Angular, Nebular

<!--
Check your `package-lock.json` or locate a `package.json` in the `node_modules` folder.
-->
ongkristopher commented 4 years ago

any update on this matter?

yggg commented 4 years ago

@ongkristopher Try to change import to import { NB_WINDOW_CONTEXT } from '@nebular/theme'; instead of deep import from @nebular/theme/components/window/window.options