WildCodeSchool-CDA-LYON-02-2024 / P2-React-Markdown

MIT License
0 stars 0 forks source link

ready-to-use example ne fontionne pas #27

Open Bak-Faek opened 6 months ago

Bak-Faek commented 6 months ago

Les imports pour le Ready-to-use example ne sont pas bon, nous avons l'erreur suivante : " Internal server error: Failed to resolve import "../components/NavbarComponent.jsx" from "src/App.jsx". Does the file exist?"

Bak-Faek commented 6 months ago

en changeant les liens import { NavbarComponent } from "@j0j0/iron-markdown/"; import { MarkdownComponent } from "@j0j0/iron-markdown/"; import "@j0j0/iron-markdown/src/assets/renderer.layout.css"; import { useMarkdown } from "@j0j0/iron-markdown/";

j'ai toujours une erreur :Uncaught SyntaxError: indirect export not found: MarkdownComponent

brrrrrbrrrr commented 6 months ago

Voici les bon imports :

import { NavbarComponent } from '../node_modules/@j0j0/iron-markdown/src/components/NavbarComponent.jsx';
import { MarkdownComponent } from '../node_modules/@j0j0/iron-markdown/src/components/MarkdownComponent.jsx';

import '../node_modules/@j0j0/iron-markdown/src/assets/renderer.layout.css';
import { useMarkdown } from '../node_modules/@j0j0/iron-markdown/src/hooks/useMarkdown.jsx';

Mais j'ai une erreur "Uncaught TypeError: theme is undefined"