Closed lajoiemedia closed 3 years ago
OK, the solution for the first part was adding svelte
to the the resolve.mainFields
list in webpack.config.js
.
{
...,
resolve: {
...,
mainFields: ["svelte", "browser", "module", "main"],
},
}
The second problem remains.
OK, I understand that html style elements in markdown are not handled by this package. Marking the issue closed/invalid.
There are two issues:
ModuleNotFoundError: Could not find module in path: 'svelte-markdown' relative to '/App.svelte'
Here's a sandbox showing the problem (Note that this is not specific to the codesandbox setup since the same is happening in my code):
sandbox1
The workaround I'm using is to use this import statement instead:
import SvelteMarkdown from "svelte-markdown/src/index.js";
sandbox2
Here the Phone component is ignored. Instead what gets rendered is:
This is a great project and I'd love to get it working for my use case. Thanks.