aem-vite / vite-aem-plugin

A proxy server and starter kit for using Vite with Adobe Experience Manager.
https://aemvite.dev/guide/front-end/vite-plugin/
Apache License 2.0
10 stars 2 forks source link

Node 16.16.0 yarn install build issue #5

Closed jaylaw81 closed 11 months ago

jaylaw81 commented 1 year ago

Describe the bug

Running installation of package results in an error and package does not install

Reproduction

Running yarn add @aem-vite/vite-aem-plugin results in error

error An unexpected error occurred: "could not find a copy of vite to link in /Users//Sites//nextgen-vite//node_modules/@aem-vite/vite-aem-plugin/node_modules".

System Info

  System:
    OS: macOS 13.2.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 357.45 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.16.0/bin/yarn
    npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm
  Browsers:
    Chrome: 112.0.5615.49
    Edge: 112.0.1722.39
    Firefox: 111.0.1
    Safari: 16.3

Package.json

"devDependencies": {
    "@storybook/addon-essentials": "^7.1.0-alpha.0",
    "@storybook/addon-interactions": "^7.1.0-alpha.0",
    "@storybook/addon-links": "^7.1.0-alpha.0",
    "@storybook/addon-styling": "^0.3.2",
    "@storybook/blocks": "^7.1.0-alpha.0",
    "@storybook/html": "^7.1.0-alpha.0",
    "@storybook/html-vite": "^7.1.0-alpha.0",
    "@storybook/testing-library": "^0.0.14-next.2",
    "autoprefixer": "^10.4.14",
    "postcss": "^8.4.21",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "sass-loader": "^10.4.1",
    "storybook": "^7.1.0-alpha.0",
    "tailwindcss": "^3.3.1",
    "vite": "^4.2.1"
  },
  "dependencies": {
    "@aem-vite/import-rewriter": "^7.0.0",
    "@storybook/addon-a11y": "^7.0.2",
    "@storybook/addons": "^7.0.2",
    "@storybook/theming": "^7.0.2",
    "@vitejs/plugin-react": "^3.1.0",
    "@whitespace/storybook-addon-html": "^5.1.4",
    "eslint": "^8.38.0",
    "eslint-plugin-react": "^7.32.2",
    "glob": "^7.0.3",
    "husky": "^8.0.3",
    "lint-staged": "^13.2.1",
    "parse-filepath": "^1.0.2",
    "react-syntax-highlighter": "^15.5.0",
    "storybook-addon-designs": "^7.0.0-beta.2",
    "storybook-tailwind-dark-mode": "^1.0.16",
    "tailwind-container-break-out": "^2.0.6",
    "terser": "^5.16.9",
    "vite-plugin-chunk-split": "^0.4.7"
  }

Used package manager: yarn

Logs

error An unexpected error occurred: "could not find a copy of vite to link in /Users/<user>/Sites/<project>/nextgen-vite/<project>/node_modules/@aem-vite/vite-aem-plugin/node_modules".
info If you think this is a bug, please open a bug report with the information provided in "/Users/<user>/Sites/<project>/nextgen-vite/<project>/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
cshawaus commented 1 year ago

@jaylaw81 Apologies for the delay in replying. Please try the latest version (v3.0.0) which should hopefully resolve this.

cshawaus commented 11 months ago

Closing as the next major release will drop Node 16.