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

npm package imports with path not working #46

Closed
philipbulley opened this issue May 20, 2020 · 1 comment
Closed

npm package imports with path not working #46

philipbulley opened this issue May 20, 2020 · 1 comment

Comments

@philipbulley
Copy link

It seems that an import such as

import styled from 'styled-components/native';

is being treated as an npm package in it's own right.

Snack displays this toast:
image

and renders with this error:

image

This is causing the Styled Components demo to fail:
https://snack.expo.io/@danielmschmidt/styled-components

The demo is referenced in the styled-components react native docs.

@IjzerenHein
Copy link
Contributor

This problem is not specific to the Snack web-app, but more specifically to saved styled-components Snack.

I've published a PR to fix this: styled-components/styled-components-website#740

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

2 participants