-
Notifications
You must be signed in to change notification settings - Fork 23
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
Next.js error: Global CSS cannot be imported from within node_modules. #42
Comments
What's the import statement look like? The exported https://github.com/lorensr/segmented-control/blob/master/src/SegmentedControlWithoutStyles.js Vs https://github.com/lorensr/segmented-control/blob/master/src/SegmentedControl.js |
I created a nextjs package Example: https://codesandbox.io/s/nextjs-example-react-md-editor-qjhn7?file=/pages/index.js @danforejtek :) |
Imported like this: import { SegmentedControlWithoutStyles } from 'segmented-control' Used same as example in readme: <SegmentedControlWithoutStyles
name="oneDisabled"
options={[
{ label: "One", value: "one", disabled: true },
{ label: "Two", value: "two" },
{ label: "Three", value: "three", default: true },
{ label: "Four", value: "four" }
]}
setValue={newValue => this.doSomething(newValue)}
style={{ width: 400, color: '#ab47bc' }} // purple400
/> |
Thanks! I fixed this in import SegmentedControlWithoutStyles from 'segmented-control/SegmentedControlWithoutStyles' |
I am using Next.js 10.2.0 and when I use
SegmentedControlWithoutStyles
this error appearsThe text was updated successfully, but these errors were encountered: