create-figma-plugin
create-figma-plugin copied to clipboard
Fix Windows
Fixes #205.
This change appends the file://
protocol to windows paths to the error below
(technically we let pathToFileURL
from node:url
do the work)
ESBuild: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader.
On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
@yuanqing this is ready (no more commits expected)
Verified on a Windows machine with all overrides present.
I need this, please
@yuanqing Can we please get this PR merged? It's a major blocker in upgrading to the newest version for windows users
@TheUltDev – Thanks for this! I’ve merged but made a small change to move the logic into importFresh
; see https://github.com/yuanqing/create-figma-plugin/commit/7d37de769b1b87ce72b0216a55cf6953593b06aa. The fix will be included in v3.2.0