contentful / rich-text

Libraries for handling and rendering Rich Text 📄
MIT License
547 stars 108 forks source link

Include src folder in npm package #299

Open dipsaus9 opened 2 years ago

dipsaus9 commented 2 years ago

React scripts 5.0.0 fails to include the TypeScript source file of the @contentful/richt-text-types. It refers to the source folder for each type, and this folder is not being included in the npm package. Please include this in the published package or change the sourceMap.

einarpersson commented 2 years ago

Same problem, using Sveltekit.

Sourcemap for "/home/xxxyy/Projects/xxxyy/xxxyy/node_modules/@contentful/rich-text-types/dist/index.js" points to missing source files
4:56:15 PM [vite] Error when evaluating SSR module /node_modules/@contentful/rich-text-types/dist/index.js?v=318de71d:
ReferenceError: exports is not defined
    at eval (/node_modules/@contentful/rich-text-types/dist/index.js?v=318de71d:29:23)
    at instantiateModule (/home/xxxyy/Projects/xxxyy/xxxyy/node_modules/vite/dist/node/chunks/dep-f5552faa.js:60105:15)

Would be very grateful if this could be prioritized, sounds like a rather quick fix

matsuura-tis commented 2 years ago

Same here. I seems that it doesn't works since 15.9.0.

tasmith039 commented 2 years ago

indeed this would be helpful

Svarozic commented 2 years ago

+1