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
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I am porting a website from NextJS to Astro. So far I was able to do most of it but there is one library that I use React Social Media Embed. And I use it like so:
This works fine when I run astor build and astro preview but when I do astro dev the InstagramEmbed component does not show, also I get some errors on the browser console.
[Error] Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
printWarning (chunk-YQUJFRB2.js:136)
error (chunk-YQUJFRB2.js:120)
createElementWithValidation (chunk-YQUJFRB2.js:1586)
(anonymous function) (@astrojs_react_client__js.js:125)
(anonymous function) (localhost:31:6299)
(anonymous function) (localhost:31:6514)
(anonymous function) (localhost:31:4593)
[Error] Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
createFiberFromTypeAndProps (chunk-DIVDBM4P.js:20439:222)
createFiberFromElement (chunk-DIVDBM4P.js:20460)
reconcileSingleElement (chunk-DIVDBM4P.js:11801)
reconcileChildFibers2 (chunk-DIVDBM4P.js:11838)
reconcileChildren (chunk-DIVDBM4P.js:14294)
updateHostRoot (chunk-DIVDBM4P.js:14775)
callCallback2 (chunk-DIVDBM4P.js:3674)
dispatchEvent
invokeGuardedCallbackDev (chunk-DIVDBM4P.js:3699)
invokeGuardedCallback (chunk-DIVDBM4P.js:3733)
beginWork$1 (chunk-DIVDBM4P.js:19761)
performUnitOfWork (chunk-DIVDBM4P.js:19194)
workLoopConcurrent (chunk-DIVDBM4P.js:19185)
renderRootConcurrent (chunk-DIVDBM4P.js:19160)
performConcurrentWorkOnRoot (chunk-DIVDBM4P.js:18674)
workLoop (chunk-DIVDBM4P.js:197)
flushWork (chunk-DIVDBM4P.js:176)
performWorkUntilDeadline (chunk-DIVDBM4P.js:384)
[Error] Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
performConcurrentWorkOnRoot (chunk-DIVDBM4P.js:18688)
workLoop (chunk-DIVDBM4P.js:197)
flushWork (chunk-DIVDBM4P.js:176)
performWorkUntilDeadline (chunk-DIVDBM4P.js:384)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I am porting a website from NextJS to Astro. So far I was able to do most of it but there is one library that I use React Social Media Embed. And I use it like so:
This works fine when I run
astor build
andastro preview
but when I doastro dev
the InstagramEmbed component does not show, also I get some errors on the browser console.In dev the rendered html is:
What's the expected result?
The component should show like when doing
astro preview
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-8mhcdp?file=src%2Fpages%2Findex.astro
Participation
Tasks
The text was updated successfully, but these errors were encountered: