-
Notifications
You must be signed in to change notification settings - Fork 9
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
docs/issue 144 best practices and recommendations for import maps and referencing node modules #153
Conversation
✅ Deploy Preview for super-tapioca-5987ce ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
src/pages/docs/resources/styles.md
Outdated
@import "../../node_modules/open-props/src/props.fonts.css"; | ||
@import "../../node_modules/open-props/src/props.shadows.css"; | ||
@import "../../node_modules/open-props/src/props.sizes.css"; | ||
@import "../../]node_modules/open-props/borders.min.css"; |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Some known issues / examples observed so far include: | ||
|
||
- `ERR_MODULE_NOT_FOUND` - Observed with packages like [**@types/trusted-types**](https://github.com/DefinitelyTyped/DefinitelyTyped), which has an [empty string](https://unpkg.com/browse/@types/[email protected]/package.json) for the **main** field, and [**font-awesome**](https://fontawesome.com/), which has [no entry point](https://unpkg.com/browse/[email protected]/package.json) at all, at least as of `v4.x`. | ||
- `ERR_PACKAGE_PATH_NOT_EXPORTED` - Encountered with the [**geist-font** package](https://vercel.com/font), which has [no default export](https://github.com/vercel/geist-font/issues/150) in its exports map |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
found some more examples
and what about things that are only types?
https://www.npmjs.com/package/type-fest
|
||
Some known issues / examples observed so far include: | ||
|
||
- `ERR_MODULE_NOT_FOUND` - Observed with packages like [**@types/trusted-types**](https://github.com/DefinitelyTyped/DefinitelyTyped), which has an [empty string](https://unpkg.com/browse/@types/[email protected]/package.json) for the **main** field, and [**font-awesome**](https://fontawesome.com/), which has [no entry point](https://unpkg.com/browse/[email protected]/package.json) at all, at least as of `v4.x`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
found another example with type-fest
5056c1a
to
a4c545c
Compare
Related Issue
resolves #144
Summary of Changes
/node_modules
based pathsTODO
ERR_MODULE_NOT_FOUND
are related to typescript files. Any way we can see those project's have a package.json with just atypes
field (and none of our supported conditions) and suppress the error, since we can assume it's just a types file?