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

Failed to create a symlink on Windows machine #78

Closed
avibiton13 opened this issue May 31, 2023 · 5 comments
Closed

Failed to create a symlink on Windows machine #78

avibiton13 opened this issue May 31, 2023 · 5 comments

Comments

@avibiton13
Copy link

Environment - Windows 11 Pro (Version 10.0.22621 Build 22621, Intel i7-9700).

Following the instruction in this repo README.md file, when running yarn build I get the following error:
symlink failed. Try running 'sudo yarn symlink' → failed ×, and obviously when launching the targeted adobe product(which is After Effects in my case) - I cannot open my CEP extension.

Trying to run yarn build using administrator account doesn't help, regardless of the terminal program in use(cmd.exe/PowerShell/Git Bash).

I did manage to bypass that issue using this workaround:

  • Launching Windows Command Prompt as administrator.
  • Executing this command: mklink /D "C:\Program Files\Common Files\Adobe\CEP\extensions\<my-panel-id>" "<path-to-my-bolt-app-root-source-code-folder>\dist\cep"

With that my CEP app is visible in After Effects Extension menu, and I can interact with it perfectly.

Please consider a fix for that issue, so we won't have to use that bandage I've mentioned above.

@justintaylor-dev
Copy link
Contributor

Is this on a new Bolt install? Is your user an Admin? Perhaps try updating the plugin yarn add vite-cep-plugin

@justintaylor-dev
Copy link
Contributor

Haven't had any other Windows users report this issue. If it comes up again feel free to re-open and provide additional details.

@avibiton13
Copy link
Author

avibiton13 commented Jun 4, 2023

@justintaylor-dev updating the vite cep plugin by running yarn add vite-cep-plugin resolved the issue!
A symlink is now created successfully when running yarn build on a Windows machine as well!
Thank you very much 🙏

@justintaylor-dev
Copy link
Contributor

awesome!

@Jalan-Ember-SN
Copy link

Jalan-Ember-SN commented Jul 21, 2023

Hi! I was having this issue and tried running yarn add vite-cep-plugin and then yarn build again. However it failed with the following error:

failed to load config from C:\[...]\vite.config.ts
error during build:
TypeError: Cannot destructure property 'iife' of 'undefined' as it is undefined.
    at jsxInclude (C:\[project folder]\node_modules\vite-cep-plugin\lib\index.js:338:23)
    at extendscriptConfig (C:\[project folder]\vite.config.ts:142:45)   
    at Object.<anonymous> (C:\[project folder]\vite.config.ts:233:1)    
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at require.extensions.<computed> [as .ts] (C:\[project folder]\node_modules\vite\dist\node\chunks\dep-6e2fe41e.js:62006:20)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at loadConfigFromBundledFile (C:\[project folder]\node_modules\vite\dist\node\chunks\dep-6e2fe41e.js:62014:17)
error Command failed with exit code 1.

I thought perhaps some other packages could be out of date so tried running yarn upgrade but that didn't seem to help.
I am not sure what to make of this. Any thoughts appreciated!

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

3 participants