-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
file:///node_modules/@assetpack/core/dist/core/AssetWatcher.js:147
else if (asset.state === 'normal') {
^
TypeError: Cannot read properties of undefined (reading 'state')
at file:///node_modules/@assetpack/core/dist/core/AssetWatcher.js:147:28
at Array.forEach (<anonymous>)
at AssetWatcher._applyChangeToAssets (file:///Users/dex/Dev/mrQ/goosicorn-racing/node_modules/@assetpack/core/dist/core/AssetWatcher.js:124:17)
at AssetWatcher._updateAssets (file:///Users/dex/Dev/mrQ/goosicorn-racing/node_modules/@assetpack/core/dist/core/AssetWatcher.js:118:14)
Node.js v22.17.0
file:///Users/dex/Dev/mrQ/goosicorn-racing/node_modules/@assetpack/core/dist/core/AssetWatcher.js:128
asset.state = 'deleted';
^
TypeError: Cannot set properties of undefined (setting 'state')
at file:///Users/dex/Dev/mrQ/goosicorn-racing/node_modules/@assetpack/core/dist/core/AssetWatcher.js:128:29
at Array.forEach (<anonymous>)
at AssetWatcher._applyChangeToAssets (file:///Users/dex/Dev/mrQ/goosicorn-racing/node_modules/@assetpack/core/dist/core/AssetWatcher.js:124:17)
at AssetWatcher._updateAssets (file:///Users/dex/Dev/mrQ/goosicorn-racing/node_modules/@assetpack/core/dist/core/AssetWatcher.js:118:14)
Node.js v22.17.0
When the Spine editor exports files, it sometimes rewrites them multiple times.
So AssetWatcher
reacts to the first file update and starts _applyChangeToAssets
,
But in parallel, those files are changed again by the Spine editor, which causes an error.
Metadata
Metadata
Assignees
Labels
No labels