question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

content.matchAll is not a function

See original GitHub issue

Hi,

I just followed the getting started, degit & npm install without issues, then the npm start output this :

xxx@yyy ~/Projects/elderjs-app
$ npm start

> elderjs-template@1.0.0 start C:\Users\xxx\Projects\elderjs-app
> npm run build:rollup && npm run dev:server


> elderjs-template@1.0.0 build:rollup C:\Users\xxx\Projects\elderjs-app
> rollup -c

rollup production === true. Because watch is undefined.

./node_modules/intersection-observer/intersection-observer.js → public\dist\static\intersection-observer.js...
created public\dist\static\intersection-observer.js in 772ms

./node_modules/systemjs/dist/s.min.js → public\dist\static\s.min.js...
created public\dist\static\s.min.js in 643ms

./src/routes/blog/Blog.svelte → ./___ELDER___/compiled/...
[!] (plugin svelte) TypeError: content.matchAll is not a function
src\routes\blog\Blog.svelte
TypeError: content.matchAll is not a function
    at markup (C:\Users\xxx\Projects\elderjs-app\node_modules\@elderjs\elderjs\build\partialHydration\partialHydration.js:6:33)
    at preprocess (C:\Users\xxx\Projects\elderjs-app\node_modules\svelte\src\compiler\preprocess\index.ts:86:27)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! elderjs-template@1.0.0 build:rollup: `rollup -c`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the elderjs-template@1.0.0 build:rollup script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xxx\AppData\Roaming\npm-cache\_logs\2020-08-14T11_21_38_286Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! elderjs-template@1.0.0 start: `npm run build:rollup && npm run dev:server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the elderjs-template@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xxx\AppData\Roaming\npm-cache\_logs\2020-08-14T11_21_38_333Z-debug.log

I’m using Node 10.16, Npm 6.9.0 & Windows 10 x64

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Shuunencommented, Aug 15, 2020

@halafi Yarn is doing this check but not Npm sadly

Everything is working fine with node 12, thanks 👍

0reactions
nickreesecommented, Aug 14, 2020

@Shuunen let us know if you get a chance to try node 12 lts and if you hit issues. Going to close this for now but feel free to reopen if upgrading doesn’t fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Property 'matchAll' does not exist on type 'string'
i have just added this as i was having the same issues as OP. But i now get the following error in my...
Read more >
String.prototype.matchAll() - JavaScript - MDN Web Docs
The matchAll() method returns an iterator of all results matching a string against a regular expression, including capturing groups.
Read more >
Javascript String matchAll() Method
In Javascript, the matchAll() method is used to return all the iterators matching the reference string against a regex (regular expression).
Read more >
String Regex matchAll not working - Questions
It returns an empty Object. Match works find, but I need to use matchAll. Hope someone know how to fix this. Created a...
Read more >
Basics of Javascript · String · matchAll() (method)
Third difference is the contents of each match. As specified in the theory part of the article, we get not only matched string...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found