#Cannot read properties of undefined (reading 'has')
10 messages · Page 1 of 1 (latest)
Hi! Did you install astro globally? I remember seeing a similar error due to doing that
Otherwise if you can create a reproduction, it will help us diagnose the issue
Hi!, a didn´t install it globally
What does the error stack trace look like?
TypeError: Cannot read properties of undefined (reading 'has')
at isAPropagatingComponent
at createAstroComponentInstance
at Object.default
at renderComponent
at file:///C:/Users/Bancita/Documents/rata3/dist/chunks/pages/all.f9cc5c62.mjs:368:27
at index (file:///C:/Users/Bancita/Documents/rata3/dist/chunks/astro.51934d6c.mjs:961:12)
at renderPage (file:///C:/Users/Bancita/AppData/Roaming/npm/node_modules/astro/dist/runtime/server/render/page.js:91:36
And it only happens in build?
yes
I see, can you create a reproduction so I can verify it's not a bug in Astro?
I have reinstalled Astro in my project and the error has changed, still won´t build ! Its too much for a newbie like me ahah T_T
Stacktrace:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
at Ib (C:..\node_modules\react-dom\cjs\react-dom-server-legacy.node.production.min.js:72:155)
at W (C:..\node_modules\react-dom\cjs\react-dom-server-legacy.node.production.min.js:73:89)
at Eb (C:...\node_modules\react-dom\cjs\react-dom-server-legacy.node.production.min.js:82:216)
at Zb (C:..\node_modules\react-dom\cjs\react-dom-server-legacy.node.production.min.js:99:157)
at exports.renderToStaticNodeStream (C:...\node_modules\react-dom\cjs\react-dom-server-legacy.node.production.min.js💯55)
at file:///C:.../dist/entry.mjs?time=1682968695120:154:25
at new Promise (<anonymous>)
at renderToStaticNodeStreamAsync (file:///C:.../dist/entry.mjs?time=1682968695120:153:9)
at async Object.renderToStaticMarkup (file:///C:/...dist/entry.mjs?time=1682968695120:117:11)
at async renderFrameworkComponent (file:///C:/.../dist/chunks/astro.84c1ae6b.mjs:2140:28)