Hello,
I have an ObservableHQ Framework app that works perfectly fine with npm run dev
. When I try to build and run the code it produces this error:
Uncaught TypeError: Cannot read properties of undefined (reading 'P')
at te.variable_resolve (runtime.ee8b4671.js:1:12499)
at Array.map (<anonymous>)
at te.variable_define (runtime.ee8b4671.js:1:12405)
at define (client.9d2c2ebe.js:1:9436)
at references.html:115:1
The line that produces the error is this:
define({id: "abbfdf1a", mode: "inline", inputs: ["ui","isLoggedIn","curSearchData","curSelRow","setIsLoggedIn","searchInput","tableInput","setTableData","spl","display"], body: async (ui,isLoggedIn,curSearchData,curSelRow,setIsLoggedIn,searchInput,tableInput,setTableData,spl,display) => {
display(await(
ui.showUI({
isLoggedIn,
curSearchData,
curSelRow,
setIsLoggedIn,
searchInput,
tableInput,
setTableData,
spl
})
I suspect that display
is(?) causing the problem but since it’s the result of the build process I don’t know how to fix it.
Thanks in advance for any help.