You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: This is a abstract store for Notifications, it cannot be instantiated.
Did you forget to inject your store instance?
const stores = useStoreProvider();
stores.inject(MyMetaStore, storeInstance);
MetaStore o-spreadsheet.esm.js:8084
build o-spreadsheet.esm.js:8064
instantiate o-spreadsheet.esm.js:8041
get o-spreadsheet.esm.js:8036
useStore o-spreadsheet.esm.js:8132
setup o-spreadsheet.esm.js:56731
ComponentNode owl.es.js:2354
createComponent owl.es.js:5758
template chunk-JBWWRFNB.js:23
_render owl.es.js:1719
render owl.es.js:1711
initiateRender owl.es.js:2376
mountComponent owl.es.js:2360
mountNode owl.es.js:5688
mount owl.es.js:5659
<anonymous> index.html:269
whenReady owl.es.js:306
<anonymous> index.html:259
Spreadsheet.setup is defined like this in 17.2.5 npm release:
Hi! Just to let you know that we updated the documentation properly with the minimal setup required to start a spreadsheet.
Specifically, there was a missing step concerning the setup of the NotificationStore.
In the meantime, we also changed that behaviour so you don't have to setup any store before instanciating a Spreadsheet component.
Could you let us know if you can manage to build a basic example with these changes?
Thanks!! Seems to no longer be an issue in npm release 17.3.4.
Another issue though is that the package.json"module" field does not match the actual ESM build file name (.es.js vs .esm.js), breaking tools like Vite that parse npm packages. (One letter to fix…)
Version (please indicate which version you are using):
17.2.5, tried some others as well
Platform (OS and Browser + version):
Linux, Firefox 125
Describe the bug
The code published on npm crashes in the following way upon instantiation:
Spreadsheet.setup
is defined like this in 17.2.5 npm release:The
17.2.5
tag on GitHub, which actually refers to the 17.0.20 commit right now, does not contain anyNotificationStore
lines:o-spreadsheet/src/components/spreadsheet/spreadsheet.ts
Lines 286 to 297 in 065ac98
and does work fine.
To Reproduce
Steps to reproduce the behavior:
npm i --save @odoo/o-spreadsheet
The text was updated successfully, but these errors were encountered: