Skip to content

Package path ./standalone is not exported #1806

Closed
@PaulineChew

Description

@PaulineChew

My environment

  • Operating System version: windows 10
  • Firebase SDK version: firebase-admin": "^11.0.0
  • Firebase Product: admin SDK
  • Node.js version: v16.16.0
  • NPM version: 8.11.0

The problem I faced:

I encounter this issue while I was trying to set up the Admin SDK configuration, specifically this line of code:

var admin = require("firebase-admin");

I have looked through the issues posted and found a relevant one here. After trying the possible solutions suggested I'm still unable to solved my issue.

Below are the errors I'm having:

Compiled with problems:X

ERROR in ./node_modules/firebase-admin/lib/app/firebase-namespace.js 106:33-80

Module not found: Error: Package path ./standalone is not exported from package C:\Users\fyp-object-detection\node_modules\@firebase\database-compat (see exports field in C:\Users\fyp-object-detection\node_modules\@firebase\database-compat\package.json)


ERROR in ./node_modules/firebase-admin/lib/database/database.js 77:25-72

Module not found: Error: Package path ./standalone is not exported from package C:\Users\fyp-object-detection\node_modules\@firebase\database-compat (see exports field in C:\Users\fyp-object-detection\node_modules\@firebase\database-compat\package.json)


ERROR in ./node_modules/firebase-admin/lib/database/index.js 20:21-68

Module not found: Error: Package path ./standalone is not exported from package C:\Users\fyp-object-detection\node_modules\@firebase\database-compat (see exports field in C:\Users\fyp-object-detection\node_modules\@firebase\database-compat\package.json)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions