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
{{ message }}
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.
I have built a working react application and wanted to include the literally canvas tool in it.
So I copied the relevant folders to a root level folder within my application folder and wanted to include the canvas tool in my index.js file.
But unfortunately I receive an 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.“.
Seems to be something wrong with the ReactDOM.render method, but I am not able to wrap my head around what is wrong here.
Thank you so much for your support / ideas!
Best regards,
Nikolas
Code of index.js is the following:
import React from 'react';
import ReactDOM from 'react-dom';
import LC from './literallycanvas/js/LiterallyCanvas';
import './literallycanvas/css/literallycanvas.css'
Hi all,
I have built a working react application and wanted to include the literally canvas tool in it.
So I copied the relevant folders to a root level folder within my application folder and wanted to include the canvas tool in my index.js file.
But unfortunately I receive an error
Seems to be something wrong with the ReactDOM.render method, but I am not able to wrap my head around what is wrong here.
Thank you so much for your support / ideas!
Best regards,
Nikolas
Code of index.js is the following:
import React from 'react';
import ReactDOM from 'react-dom';
import LC from './literallycanvas/js/LiterallyCanvas';
import './literallycanvas/css/literallycanvas.css'
ReactDOM.render(
<div>
<LC.LiterallyCanvasReactComponent imageURLPrefix="/literallycanvas/img" />
</div>,
document.getElementById('root'));
The text was updated successfully, but these errors were encountered: