Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Change import style to es6#1054

Merged
jonkoops merged 1 commit intomasterfrom
fix-image-inclusion
Jan 25, 2021
Merged

Change import style to es6#1054
jonkoops merged 1 commit intomasterfrom
fix-image-inclusion

Conversation

@timvanoostrom
Copy link
Contributor

The bg images would not show up in our app. Apparently this might be caused by a file-loader module default in create-react-app dependency. facebook/create-react-app#9934

Chaning the import style works for both stories as well as our app.

I couldn't get TS to be satisfied though that's why I added the @ts-ignore directive. I've tried adding a module declaration in types.d.ts as described here microsoft/TypeScript-React-Starter#12 but I could not get that to work. Any help/ideas are appreciated.

Signed-off-by: Tim van Oostrom tim@depulz.nl

Signed-off-by: Tim van Oostrom <tim@depulz.nl>
Copy link
Contributor

@jonkoops jonkoops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @timvanoostrom, this also works with the Storybook?

@timvanoostrom
Copy link
Contributor Author

Yes works.

@timvanoostrom
Copy link
Contributor Author

@jonkoops how can one update the netlify node engine? Building fails because:

error @: The engine "node" is incompatible with this module. Expected version "^14". Got "10.23.1"

@jonkoops jonkoops merged commit 2b1655c into master Jan 25, 2021
@jonkoops jonkoops deleted the fix-image-inclusion branch January 25, 2021 14:20
@jonkoops
Copy link
Contributor

I'll fix the problems with Netlify in a separate PR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants