Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Windows 10 Eleventy config error when trying to run the project #4926

Closed
rachelandrew opened this issue Mar 19, 2021 · 4 comments
Closed

Windows 10 Eleventy config error when trying to run the project #4926

rachelandrew opened this issue Mar 19, 2021 · 4 comments
Labels
eng - bug Something broke!

Comments

@rachelandrew
Copy link
Collaborator

I am on Windows 10 and trying to run the project. It fails with the following:

> Error in your Eleventy config file '/mnt/c/users/rache/local/google/webdev/.eleventy.js'.

`EleventyConfigError` was thrown
> Unexpected token '.'

`SyntaxError` was thrown:
    /mnt/c/users/rache/local/google/webdev/node_modules/webdev-infra/filters/toc.js:76
      const childrenPart = node?.children?.length
                                ^

    SyntaxError: Unexpected token '.'

Tried this just on the main branch: e7a43e9

node -v on Ubuntu via WSL v12.21.0

@rachelandrew rachelandrew added the eng - bug Something broke! label Mar 19, 2021
@robdodson
Copy link
Contributor

@rachelandrew ah sorry for the issue there. You'll need to use node 14+

@robdodson
Copy link
Contributor

I'm going to close this issue but happy to reopen if you hit any other snags.

@rachelandrew
Copy link
Collaborator Author

@robdodson the readme says 12.10 https://github.com/GoogleChrome/web.dev#building-the-site- so guess we should update that. Usually when I upgrade node everything breaks so I tend to leave it until forced.

@robdodson robdodson reopened this Mar 19, 2021
@robdodson
Copy link
Contributor

oh shoot sorry about that! yes let me send in a quick update.

For upgrading node do you use a tool like nvm? I've found it can be quite helpful so I can jump between versions. The site has a .nvmrc file which you can use to have nvm automatically switch you to the right version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
eng - bug Something broke!
Projects
None yet
Development

No branches or pull requests

2 participants