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

Invalid CSS breaks survey-core with NextJS 15 #6040

Open
iotashan opened this issue Nov 5, 2024 · 4 comments
Open

Invalid CSS breaks survey-core with NextJS 15 #6040

iotashan opened this issue Nov 5, 2024 · 4 comments
Assignees
Labels
need more info user issue An issue or bug reported by users.

Comments

@iotashan
Copy link

iotashan commented Nov 5, 2024

::i-block-chrome is not valid CSS, and breaks if you try to use survey-creator-react with Next.js 15

import 'survey-creator-core/survey-creator-core.min.css';

Unsupported pseudo class or element: i-block-chrome

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users. labels Nov 7, 2024
@tsv2013
Copy link
Member

tsv2013 commented Nov 8, 2024

This was done to fix the surveyjs/survey-library#5507 issue
And reserve place for scroll bar in safari - e28ef3c

@tsv2013
Copy link
Member

tsv2013 commented Nov 8, 2024

@iotashan Probably you can setup to skip this rule check for this code, or for the whole survey-creator-core.min.css file

@JaneSjs JaneSjs self-assigned this Nov 8, 2024
@JaneSjs
Copy link
Contributor

JaneSjs commented Nov 8, 2024

Hello @iotashan,
I created a fresh NextJS 15 application (v15.0.3). Please download it at
next-15.zip. I successfully ran the npm run dev and npm run build commands and didn't get the mentioned error.
Please try the demo on your end and clarify how to reproduce the issue.

Thanks

@JaneSjs JaneSjs closed this as completed Nov 14, 2024
@JaneSjs JaneSjs reopened this Nov 14, 2024
@JaneSjs JaneSjs removed the bug label Nov 14, 2024
@JaneSjs JaneSjs removed their assignment Nov 14, 2024
@ojkaas
Copy link

ojkaas commented Nov 19, 2024

I also get the same error, tried the demo project and that works, set the package version to the same versions in my project, but then I get the same error. Will try to see if I can create something reproducible but the current project I cannot easily share. Any tips in the meantime how I could skip this check?

@JaneSjs JaneSjs self-assigned this Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info user issue An issue or bug reported by users.
Projects
None yet
Development

No branches or pull requests

4 participants