Open valpackett opened 6 months ago
Thanks for the report :) The release script seems to be at fault here, I will investigate it right away.
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?
Regards,
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…)
Indeed, I will fix that right away :)
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:https://github.com/odoo/o-spreadsheet/blob/065ac988cd2fdf18bf2cd8b1d68660c3a45c387f/src/components/spreadsheet/spreadsheet.ts#L286-L297
and does work fine.
To Reproduce Steps to reproduce the behavior:
npm i --save @odoo/o-spreadsheet