Skip to main content
Question

lucid-package bundle creating invalid package: Missing or invalid extension.js

  • January 21, 2026
  • 3 replies
  • 31 views

Forum|alt.badge.img+1

Whenever I try to upload a package I get the following error:

We could not upload that file. Please try again with a different .zip file.
Missing or malformed file in package: editorextensions\in-a-circle-ext\bin\extension.js


I’ve attempted to make it as simple as possible of an extension by copying one of the example extensions. https://github.com/lucidsoftware/sample-lucid-extensions/blob/main/in-a-circle/editorextensions/in-a-circle/src/extension.ts

I created the extension using:

npx lucid-package@latest create

Copied and pasted the code from the github into my extension.ts.

Tested using:

npx lucid-package@latest test-editor-extension in-a-circle-ext

And bundled using:

npx lucid-package@latest bundle

npx version = 11.6.2
lucid-package version = 0.0.127
lucid-extension-sdk = 0.0.447

Running on Windows

Looking into the zip file, the extension.js file is in the correct place, so I’m guessing it’s malformed somehow?

Comments

Forum|alt.badge.img+2
  • Lucid product team
  • January 22, 2026

Hi ​@sgausman. Thanks for raising this!

We are investigating and will get back to you shortly. In the meantime, there was a similar post with bundling and uploading problems with windows located here. Can you see if the solution there works for you? 


Forum|alt.badge.img+1
  • Author
  • January 22, 2026

Hi Chase,

Thanks for looking into it! I did see that post before I made mine. I double checked my manifest and it has the double backslashes from when it was created. So it looks like there’s been a change in the package since that post. BUT, after some testing, ironically I think that’s the issue now. When I replace the double backslashes with forward slashes, it successfully uploads.

So when I changed the line

      "codePath": "editorextensions\\in-a-circle-ext\\bin\\extension.js",

to

      "codePath": "editorextensions/in-a-circle-ext/bin/extension.js",

The zip file is accepted and the extension works as expected.

I had to replace the backslashes with forward slashes for a different extension with a shape library for the lcszPath to get it to accept the zip file. Otherwise it said the same error message but with the .lcsz file.

So it seems like adding in the double backslashes is actually the problem now.


Forum|alt.badge.img+2
  • Lucid product team
  • January 23, 2026

Oh fascinating. I’ll take it back to the team so we take a look, but I’m glad to see you were able to successfully upload!