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
hi there i am playing around the o-spreadsheet project and everything works fine in dev mode. But when i build the app (tried both with webpack and vite) i get this strange error:
No active component (a hook function should only be called in 'setup')
i am trying to mount the owl component using the "rootApp" strategy shown in the main.js file of the demo folder. here the relevant code:
const rootApp = new owl.App(Spreadsheet, { props: { model } });
rootApp.addTemplates(templates);
rootApp.mount(document.body, {});
i have tried to move the 2 hooks "useRef("spreadsheet");" and "useSpreadsheetRect();" in Spreadsheet component inside the setup() function but still get this error.
this same code use to work in v16 ...
Notice that everything works fine in development mode, but does not in the build version ... any hint this might be ?
NOTE: the app was working fine in both environments in version 16 of the spreasheet (owl 2.1) now i get the problem in v18 (owl 2.3)
i have reported the issue here but i believe it could be related to owl as well: odoo/o-spreadsheet#5293
The text was updated successfully, but these errors were encountered:
hi there i am playing around the o-spreadsheet project and everything works fine in dev mode. But when i build the app (tried both with webpack and vite) i get this strange error:
i am trying to mount the owl component using the "rootApp" strategy shown in the main.js file of the demo folder. here the relevant code:
i have tried to move the 2 hooks "useRef("spreadsheet");" and "useSpreadsheetRect();" in Spreadsheet component inside the setup() function but still get this error.
this same code use to work in v16 ...
Notice that everything works fine in development mode, but does not in the build version ... any hint this might be ?
NOTE: the app was working fine in both environments in version 16 of the spreasheet (owl 2.1) now i get the problem in v18 (owl 2.3)
i have reported the issue here but i believe it could be related to owl as well: odoo/o-spreadsheet#5293
The text was updated successfully, but these errors were encountered: