Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed with Vite 6 #62

Open
tcztzy opened this issue Dec 28, 2024 · 1 comment
Open

Build failed with Vite 6 #62

tcztzy opened this issue Dec 28, 2024 · 1 comment

Comments

@tcztzy
Copy link

tcztzy commented Dec 28, 2024

Describe the bug

As title described, I got the error message

error during build:
[commonjs--resolver] Failed to resolve entry for package "paneforge". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." specifier in "paneforge" package

the node_modules/paneforge/package.json content is

{
  "name": "paneforge",
  "version": "0.0.6",
  "author": {
    "name": "Hunter Johnston",
    "url": "https://github.com/huntabyte"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/svecosystem/paneforge",
    "directory": "packages/paneforge"
  },
  "license": "MIT",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "svelte": "./dist/index.js"
    }
  },
  "files": [
    "dist",
    "!dist/**/*.test.*",
    "!dist/**/*.spec.*"
  ],
  "peerDependencies": {
    "svelte": "^4.0.0 || ^5.0.0-next.1"
  },
  "devDependencies": {
    "@sveltejs/adapter-auto": "^3.0.0",
    "@sveltejs/kit": "^2.0.0",
    "@sveltejs/package": "^2.0.0",
    "@sveltejs/vite-plugin-svelte": "^3.0.0",
    "@types/eslint": "8.56.0",
    "@types/node": "^20.10.6",
    "@typescript-eslint/eslint-plugin": "^6.0.0",
    "@typescript-eslint/parser": "^6.0.0",
    "autoprefixer": "^10.4.16",
    "eslint": "^8.56.0",
    "eslint-config-prettier": "^9.1.0",
    "eslint-plugin-svelte": "^2.35.1",
    "postcss": "^8.4.32",
    "postcss-load-config": "^5.0.2",
    "prettier": "^3.1.1",
    "prettier-plugin-svelte": "^3.1.2",
    "prettier-plugin-tailwindcss": "^0.5.9",
    "publint": "^0.1.9",
    "svelte": "^4.2.7",
    "svelte-check": "^3.6.0",
    "tailwindcss": "^3.4.1",
    "tslib": "^2.4.1",
    "typescript": "^5.0.0",
    "vite": "^5.0.3",
    "vitest": "^1.0.0"
  },
  "svelte": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "type": "module",
  "dependencies": {
    "nanoid": "^5.0.4"
  },
  "scripts": {
    "dev": "pnpm watch",
    "build": "pnpm package",
    "preview": "vite preview",
    "package": "svelte-kit sync && svelte-package && publint",
    "test": "npm run test:integration && npm run test:unit",
    "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
    "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
    "lint": "prettier --check . && eslint .",
    "format": "prettier --write .",
    "test:integration": "playwright test",
    "test:unit": "vitest",
    "watch": "svelte-kit sync && svelte-package --watch"
  }
}

Reproduction

Using paneforge 0.0.6 with vite 6.

Logs

No response

System Info

System:
    OS: macOS 15.2
    CPU: (8) arm64 Apple M2
    Memory: 95.83 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.12.0 - ~/.volta/tools/image/node/22.12.0/bin/node
    Yarn: 4.0.0-rc.42 - ~/.volta/tools/image/yarn/4.0.0-rc.42/bin/yarn
    npm: 10.9.0 - ~/.volta/tools/image/node/22.12.0/bin/npm
    pnpm: 9.15.0 - ~/.volta/bin/pnpm
    bun: 1.1.34 - ~/.bun/bin/bun
    Watchman: 2024.12.02.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 131.0.6778.205
    Edge: 131.0.2903.112
    Safari: 18.2
  npmPackages:
    @sveltejs/kit: ^2.5.20 => 2.12.1 
    paneforge: ^0.0.6 => 0.0.6 
    svelte: ^4.2.18 => 4.2.19 
    vite: ^6 => 6.0.3

Severity

blocking an upgrade

@huntabyte
Copy link
Member

Are you able to reproduce this using paneforge@next?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants