Error: Used non-default namespace to successfully find...
On an adapt update
, I got the following error:
$ adapt update io
✔ Installing node modules
✔ Validating project
❯ Updating project deployment
✔ Compiling project
✔ Building new DOM
✖ Loading previous DOM
→ **** Used non-default namespace to successfully find {"name":"HandleImp…
Observing environment
Deploying
› Error: This project cannot be deployed.
› 1 error encountered during deploy:
› [deploy:update] : Error Updating deployment: Error: **** Used non-default
› namespace to successfully find
› {"name":"HandleImpl","namespace":"$adaptExports","pkgName":"@adpt/core","p
› kgVersion":"0.3.1","relFilePath":"handle.js"}
› at MummyRegistry.awaken (/home/mark/unbounded/io/adapt/node_modules/@a
› dpt/core/src/reanimate/reanimate.ts:128:19)
› at makeHandle (/home/mark/unbounded/io/adapt/node_modules/@adpt/core/s
› rc/reanimate/reanimate_dom.ts:80:36)
› at reanimateNode (/home/mark/unbounded/io/adapt/node_modules/@adpt/cor
› e/src/reanimate/reanimate_dom.ts:132:20)
› at async Promise.all (index 0)
› at reanimateNode (/home/mark/unbounded/io/adapt/node_modules/@adpt/cor
› e/src/reanimate/reanimate_dom.ts:126:29)
› at async Promise.all (index 1)
› at reanimateNode (/home/mark/unbounded/io/adapt/node_modules/@adpt/cor
› e/src/reanimate/reanimate_dom.ts:126:29)
› at async Promise.all (index 3)
› at reanimateNode (/home/mark/unbounded/io/adapt/node_modules/@adpt/cor
› e/src/reanimate/reanimate_dom.ts:126:29)
› at Object.reanimateDom (/home/mark/unbounded/io/adapt/node_modules/@ad
› pt/core/src/reanimate/reanimate_dom.ts:55:17)
This appears to be because I had an existing Adapt deployment that directly used @adpt/core
version 0.3.1, then manually updated package.json to use version 0.4.0-next.1, then ran adapt update <deployID>
.
Analysis
Adapt does not yet support changing the versions of components on live deployments.
Workaround
Revert package.json back to the previous library versions and re-run adapt update
.
Edited by Mark Terrel