rich-text icon indicating copy to clipboard operation
rich-text copied to clipboard

Include src folder in npm package

Open dipsaus9 opened this issue 3 years ago • 4 comments

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.

dipsaus9 avatar Dec 22 '21 11:12 dipsaus9

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

einarpersson avatar Feb 10 '22 16:02 einarpersson

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

matsuura-tis avatar Apr 22 '22 03:04 matsuura-tis

indeed this would be helpful

tasmith039 avatar Aug 04 '22 19:08 tasmith039

+1

Svarozic avatar Aug 24 '22 12:08 Svarozic