Nebular: Module not found: Error: Can't resolve '@nebular/auth/helpers'

Created on 2 Jul 2019  路  8Comments  路  Source: akveo/nebular

Issue type

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

  • [x] bug report
  • [ ] feature request

Issue description

Importing getDeepFromObject in the components but it throws error:

Module not found: Error: Can't resolve '@nebular/auth/helpers'

The helpers.d.ts exists in the location and has the line which exports the above function.

Using Nebular 4.

{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "outDir": "./out-tsc/app",
    "types": [],
    "paths": {
      "@nebular/*": [
        "./node_modules/@nebular/*"
      ]
    }
  },
  "include": [
    "src/**/*.ts",
    "./node_modules/@nebular/**/*.ts"
  ],
  "exclude": [
    "src/test.ts",
    "src/**/*.spec.ts"
  ]
}
bug auth

Most helpful comment

@arv1989 You need to import getDeepFromObject from @nebular/auth, not @nebular/auth/helpers

All 8 comments

Can confirm, we are migrating an NgxAdmin project from the old 3.6 version to the current nebular-4-based version, and, despite VSCode showing no errors, the Angular compiler can't reach @nebular/auth/helpers for some reason.

@nnixaa is this bug fixed yet? I am unable to move forward with my task because of this bug. Is there any temporary fix to this bug? I am experiencing this bug in ngx-admin.

It's not fixed yet. As a workaround, you can copy functions you need from https://github.com/akveo/nebular/blob/44225d40f8c8754c1a8fe31e3b160a651c440d27/src/framework/auth/helpers.ts#L119

Is the resolved? I am still getting the same error in 4.1.2,

@arv1989 It is resolved. It works for me now.

okay. thanks for the confirmation. I was trying to implement Firebase Auth with the module, I imported getDeepFromObject like this,

import { getDeepFromObject } from '@nebular/auth/helpers';

But I get the 'Can't resolve' error

any thoughts?
@maihannijat @yggg

@arv1989 You need to import getDeepFromObject from @nebular/auth, not @nebular/auth/helpers

@yggg oh sorry.. thanks!

Was this page helpful?
0 / 5 - 0 ratings