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
Marked version:
13.0.1 (the previous version was 0.7.0)
Describe the bug
After upgrading the dependency from v0.7.0 to v13.0.1 and building my app I get this error:
[ ERROR ] Rollup: Plugin Error: node_modules/marked/lib/marked.umd.js:253:15
Unexpected token (253:15) in
/home/public/src/Adevinta/Privacy-Broker/privacy-console/node_modules/marked/lib/marked.umd.js
(plugin: commonjs, transform)
L252: class _Tokenizer {
L253: options;
L254: rules; // set by the lexer
[ ERROR ] ENOENT: no such file or directory, open
'/home/public/src/Adevinta/Privacy-Broker/privacy-console/www/build/app.esm.js'
To Reproduce
Steps to reproduce the behavior:
Stencil.js framework, using Typescript 5.5.2
Upgrade marked to 13.0.1
Run npm run build
Expected behavior
It should build without any problem
This is the code:
import { Component, Element, Prop, h } from '@stencil/core';
import { marked } from 'marked';
import DOMPurify from 'dompurify';
@Component({
tag: 'marked-down',
})
export class MarkedDown {
@Prop() content: string;
@Element() element: HTMLElement;
render() {
const html = marked.parse(this.content) as string;
this.element.innerHTML = DOMPurify.sanitize(html);
return <div></div>;
}
}
The text was updated successfully, but these errors were encountered:
Marked version:
13.0.1 (the previous version was 0.7.0)
Describe the bug
After upgrading the dependency from v0.7.0 to v13.0.1 and building my app I get this error:
To Reproduce
Steps to reproduce the behavior:
marked
to 13.0.1npm run build
Expected behavior
It should build without any problem
This is the code:
The text was updated successfully, but these errors were encountered: