Skip to content

Missing ServeGrip in root of module #1

Open
@jdconley

Description

@jdconley

I just updated to the latest version (2.0.1) and my imports stopped working.

import { ServeGrip } from '@fanoutio/serve-grip';

This now fails.

I was able to find the class in:

import { ServeGrip } from '@fanoutio/serve-grip/build/node/ServeGrip';

But, it should be in the types exported at the root of the module, no? And this doesn't actually work...

node:internal/modules/cjs/loader:647
      throw e;
      ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './build/node/ServeGrip' is not defined by "exports" in /moonrepo/backend/node_modules/@fanoutio/serve-grip/package.json
    at exportsNotFound (node:internal/modules/esm/resolve:314:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:662:9)
    at resolveExports (node:internal/modules/cjs/loader:640:36)
    at Function._findPath (node:internal/modules/cjs/loader:748:31)
    at Function._resolveFilename (node:internal/modules/cjs/loader:1235:27)
    at Function._load (node:internal/modules/cjs/loader:1075:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
    at Module.<anonymous> (node:internal/modules/cjs/loader:1340:12)
    at Hook.Module.require (/moonrepo/backend/node_modules/dd-trace/packages/dd-trace/src/ritm.js:64:27) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v22.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions