Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: src.replace is not a function #867

Closed
colagao opened this issue Mar 10, 2017 · 1 comment · Fixed by #682
Closed

TypeError: src.replace is not a function #867

colagao opened this issue Mar 10, 2017 · 1 comment · Fixed by #682
Labels
help wanted L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue

Comments

@colagao
Copy link

colagao commented Mar 10, 2017

TypeError: src.replace is not a function
Please report this to https://github.com/chjj/marked.
at Lexer.lex (E:\myGit\node-blog\node_modules\marked\lib\marked.js:138:6)
at Function.Lexer.lex (E:\myGit\node-blog\node_modules\marked\lib\marked.js:129:16)
at marked (E:\myGit\node-blog\node_modules\marked\lib\marked.js:1219:31)
at E:\myGit\node-blog\routes\posts.js:141:16
at newTickHandler (E:\myGit\node-blog\node_modules\mpromise\lib\promise.js:234:18)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

@adius
Copy link

adius commented Sep 2, 2017

For me the error was that I used

let content = fs.readFileSync('./readme.md')

instead of

let content = fs.readFileSync('./readme.md', 'utf-8')

@joshbruce joshbruce added help wanted L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue labels Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants