content.matchAll is not a function
See original GitHub issueHi,
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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@halafi Yarn is doing this check but not Npm sadly
Everything is working fine with node 12, thanks 👍
@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.