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

0

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.
Posted by: Guest on March-20-2021

Code answers related to "expected a string (for built-in components) or a class/function (for composite components) but got: undefined"

Browse Popular Code Answers by Language