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

Problem during 'dev run build' #164

Open
brendan-holmes opened this issue Mar 28, 2020 · 2 comments
Open

Problem during 'dev run build' #164

brendan-holmes opened this issue Mar 28, 2020 · 2 comments
Labels
bug Something isn't working platform: windows

Comments

@brendan-holmes
Copy link

Using the quick start guide, had this error when running npm run build:

[error] RangeError: Invalid time value
    at Date.toISOString (<anonymous>)
    at C:\Projects\create-portfolio\test-site\node_modules\feed\lib\atom1.js:57:32
    at Array.map (<anonymous>)
    at Object.default (C:\Projects\create-portfolio\test-site\node_modules\feed\lib\atom1.js:52:15)
    at Feed.atom1 (C:\Projects\create-portfolio\test-site\node_modules\feed\lib\feed.js:17:58)
    at generateFeed (C:\Projects\create-portfolio\test-site\node_modules\saber-plugin-feed\lib\index.js:124:67)
    at async Promise.all (index 0)
    at async C:\Projects\create-portfolio\test-site\node_modules\saber-plugin-feed\lib\index.js:43:5

No issues with npm run dev.

$ npm -v
6.13.1
$ node -v
v13.2.0

Full output:

$ npm run build

> my-site@ build C:\Projects\create-portfolio\my-site
> saber build

[info] Using config file: saber-config.js
[info] Using theme: portfolio
[info] Fetching GitHub data for brendan-holmes..
[info] Using 2 plugins from config file
[success] Compiled server successfully in 5.5s!
[success] Compiled client successfully in 8.4s!
[info] Generating posts\my-first-post\index.html
[info] Generating about\index.html
[info] Generating index.html
[info] Generating posts\index.html
[info] Generating tags\life\index.html
[info] Generating 404.html
[error] RangeError: Invalid time value
    at Date.toISOString (<anonymous>)
    at C:\Projects\create-portfolio\my-site\node_modules\feed\lib\atom1.js:57:32
    at Array.map (<anonymous>)
    at Object.default (C:\Projects\create-portfolio\my-site\node_modules\feed\lib\atom1.js:52
    at Feed.atom1 (C:\Projects\create-portfolio\my-site\node_modules\feed\lib\feed.js:17:58)
    at generateFeed (C:\Projects\create-portfolio\my-site\node_modules\saber-plugin-feed\lib\
    at async Promise.all (index 0)
    at async C:\Projects\create-portfolio\my-site\node_modules\saber-plugin-feed\lib\index.js
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-site@ build: `saber build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-site@ build script.
@egoist egoist added bug Something isn't working platform: windows labels Mar 28, 2020
@bruhtus
Copy link

bruhtus commented Oct 20, 2020

I have the same problem, the only difference is that i'm on linux. Is there some kind of problem with newer npm version?

@rjworks
Copy link

rjworks commented Mar 25, 2021

Any updates @egoist ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform: windows
Projects
None yet
Development

No branches or pull requests

4 participants