Automattic / Automattic/isolated-block-editor

Uncaught Error: Cannot unlock an object that was not locked before - With Vite

Open
#248 17 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
409
Forks
66
PR merge metrics
No merged PRs in 30d

Description

Hey, I have trouble getting this package to work with Vite.

I get this error:

`Uncaught Error: Cannot unlock an object that was not locked before.
at unlock (implementation.js:185:9)
at index.js:25:31`

Is this because the package is not compatible with Vite (when I ran it on Webpack it was ok)?

Or am I doing something terribly wrong?

Thanks a lot!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported error with Vite and compare the same package setup under Webpack. Trace the calls from implementation.js:185 through index.js:25, then determine what causes the unlock call to run without a prior lock. Done means the Vite setup no longer throws this error and the behavior remains compatible with the Webpack setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
vite
Domain
build-system, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.