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

Top-level selectors may not contain the parent selector "&" #15

Closed
stefanDeveloper opened this issue Mar 25, 2023 · 9 comments
Closed

Comments

@stefanDeveloper
Copy link

When I run the minimal example I receive the following error:

ERROR 2023/03/25 21:46:06 TOCSS-DART: failed to transform "_paige/bootstrap/09cdb4541bc48f98c0f1df7f9bcf96ef9121c473-paige.scss" (text/x-scss): "/Users/stefan/Documents/projects/website-sk9/node_modules/bootstrap/scss/_carousel.scss:0:4": Top-level selectors may not contain the parent selector "&".
ERROR 2023/03/25 21:46:06 TOCSS-DART: failed to transform "_paige/bootstrap/3dc68794edca2b980ea08fad4e2fcb4dc8c98b16-paige.scss" (text/x-scss): "/Users/stefan/Documents/projects/website-sk9/node_modules/bootstrap/scss/_carousel.scss:0:4": Top-level selectors may not contain the parent selector "&".
ERROR 2023/03/25 21:46:06 TOCSS-DART: failed to transform "_paige/bootstrap/d4eec9c255b6f01ee12e559f5dc56ffb40a6f80c-paige.scss" (text/x-scss): "/Users/stefan/Documents/projects/website-sk9/node_modules/bootstrap/scss/_carousel.scss:0:4": Top-level selectors may not contain the parent selector "&".
ERROR 2023/03/25 21:46:06 TOCSS-DART: failed to transform "_paige/bootstrap/26eceb6a87e7e696fd870bf0c3fab59cd1d6f207-paige.scss" (text/x-scss): "/Users/stefan/Documents/projects/website-sk9/node_modules/bootstrap/scss/_carousel.scss:0:4": Top-level selectors may not contain the parent selector "&".
ERROR 2023/03/25 21:46:06 TOCSS-DART: failed to transform "_paige/bootstrap/8c2e467ad18917e1cf1aabd140da319f2ea3a8e0-paige.scss" (text/x-scss): "/Users/stefan/Documents/projects/website-sk9/node_modules/bootstrap/scss/_carousel.scss:0:4": Top-level selectors may not contain the parent selector "&".

Any idea why this happens?

@willfaught
Copy link
Owner

What does hugo env print? Which Paige version are you using?

@stefanDeveloper
Copy link
Author

❯ hugo env
hugo v0.111.3+extended darwin/amd64 BuildDate=unknown
GOOS="darwin"
GOARCH="amd64"
GOVERSION="go1.20.2"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"
github.com/sass/dart-sass-embedded/protocol="1.2.0"
github.com/sass/dart-sass-embedded/compiler="1.60.0"
github.com/sass/dart-sass-embedded/implementation="1.60.0"

@willfaught
Copy link
Owner

Thanks. And the Paige version?

@willfaught
Copy link
Owner

Can you clarify what you mean by "run the minimal example"? Do you mean exampleSite? Have you made any changes to it?

@mulder1628
Copy link

I think i encountered the same issue.
i ran the minimal, as in, run the plain vanila initial setup on the command line:

hugo new site project_name

following the prescriptive steps outlined in https://github.com/willfaught/paige#install
by first git init the newly created site "project_name"
and pushed to github, in order to run the subsequent commands outlined in https://github.com/willfaught/paige#install

$ cd yourproject
$ hugo mod init github.com/youraccount/yourproject
$ hugo mod get github.com/willfaught/paige

@willfaught
Copy link
Owner

willfaught commented Mar 28, 2023

I’ve found the issue and I’m working on a fix, but unfortunately it requires testing in production, and also my power is out today. Will get it fixed ASAP.

@willfaught
Copy link
Owner

The power came back.

Try the fix in v0.54.3.

@stefanDeveloper
Copy link
Author

Awesome, many thanks for the quick fix!

@willfaught
Copy link
Owner

This seems resolved, so closing.

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

No branches or pull requests

3 participants