Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

expected a string (for built-in components) or a class/function (for composite components) but got: undefined

In my case (using Webpack) it was the difference between:

import {MyComponent} from '../components/xyz.js';
vs

import MyComponent from '../components/xyz.js';
The second one works while the first is causing the error. Or the opposite.
Comment

PREVIOUS NEXT
Code Example
Javascript :: DataTables warning: table id=datatable - Ajax error 
Javascript :: javascript replace all with variable 
Javascript :: how to call ajax javascript 
Javascript :: block scoped in js 
Javascript :: change text color according to background js 
Javascript :: regex capture group example 
Javascript :: json validate 
Javascript :: javascript case insensitive regex 
Javascript :: sorting an array 
Javascript :: js toggle multiple classes 
Javascript :: google places API details JS 
Javascript :: react native qr code scanner 
Javascript :: javascript find json value 
Javascript :: first name last name concatenate javascript with ternary operator 
Javascript :: Lazy Loading 
Javascript :: how to run react code in visual studio 
Javascript :: var function js 
Javascript :: object.assign in express 
Javascript :: js max number in array mdn 
Javascript :: javascript return data async 
Javascript :: javascript canvas load image 
Javascript :: audio get current time 
Javascript :: javascript merge multidimensional array 
Javascript :: find the length and the last character of string in js 
Javascript :: javascript casting objects 
Javascript :: trigger jquery autocomplete on click 
Javascript :: fastify testing 
Javascript :: javascript javascript javascript javascript javascript 
Javascript :: router react how to pass data to class component 
Javascript :: can we pass variable to a object 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =