Skip to content

Build Failure in @shelby-protocol/player v0.1.1 with Next.js: Cannot Resolve './components' in dist/index.mjs #18

Description

@ToanBm

Issue Description

Build error in @shelby-protocol/player v0.1.1 with Next.js: Fails to resolve export * from "./components"; in dist/index.mjs, causing "Module not found" error. This blocks using components like SimpleShakaVideoPlayer for video streaming integration with Shelby SDK.

Steps to Reproduce

  1. Create Next.js 14 app: npx create-next-app@latest my-app --typescript.
  2. Install: pnpm add @shelby-protocol/player tailwindcss@4.
  3. Import:
    import { SimpleShakaVideoPlayer } from '@shelby-protocol/player';
    // Use in component...
  4. Run pnpm dev
    Error Log
    Module not found: Can't resolve './components'
    ./node_modules/@shelby-protocol/player/dist/index.mjs (2:1)
    > 2 | export * from "./components";

Additional NotesLikely bundling issue (tsup/esbuild missing components in dist). Temporary workaround: Webpack fallback in next.config.js, but not ideal. Thanks for checking!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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