Skip to content

Elements v^8.1.3 => Unfound type declaration with NextJs 14.2.3 #2589

Description

@nulltoken

Follow up to #2345

Context

I'm trying to use elements in a Next.js app configured with static export

Current Behavior

Using a freshly installed Nextjs 14.2.3 app, install latest 8.1.3 version.
Update app/page.tsx to include thse snippet from #2345 (comment)

VsCode complains wth Could not find a declaration file for module '@stoplight/elements'.

image

Expected Behavior

  • No warning
  • npm run build works
  • static export work as intended

Possible Workaround/Solution

No (easy) one

Steps to Reproduce

See above

Environment

Node 20.10

  "dependencies": {
    "@stoplight/elements": "^8.1.3",
    "next": "14.2.3",
    "react": "^18",
    "react-dom": "^18"
  },
  "devDependencies": {
    "@types/node": "^20",
    "@types/react": "^18",
    "@types/react-dom": "^18",
    "eslint": "^8",
    "eslint-config-next": "14.2.3",
    "typescript": "^5"
  }

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions