Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Modifying the pathSrc option causes build to fail #99

Open
protoEvangelion opened this issue Jan 2, 2018 · 0 comments
Open

Modifying the pathSrc option causes build to fail #99

protoEvangelion opened this issue Jan 2, 2018 · 0 comments

Comments

@protoEvangelion
Copy link
Contributor

Hey @Robert-Frampton,

When trying to modify the pathSrc option in electric.config.js it causes electric run to fail.

For instance, I am changing the src folder to docs and then in the electric config I am doing:

module.exports = {
    pathSrc: 'docs'
}

It is failing here: /electric-cli/node_modules/electric/lib/util.js:45:14

Running console.log(siteData.index.children) in that file outputs this:

{ '': { '': { '': [Object] } } }

Therefore the page variable is undefined.

Any ideas? Thanks for the great work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant