jsona icon indicating copy to clipboard operation
jsona copied to clipboard

Source map issue?

Open samysadi opened this issue 3 years ago • 2 comments

Hello,

I am getting several similar issues : WARNING in ./node_modules/jsona/lib/Jsona.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from './node_modules/jsona/src/Jsona.ts' file: Error: ENOENT: no such file or directory, open './node_modules/jsona/src/Jsona.ts'

The npm package is missing the src folder?

Edit: this message comes from webpack when running CRA build script (https://github.com/facebook/create-react-app/discussions/11767) and might indicate a source map misconfiguration in this package.

samysadi avatar May 15 '22 01:05 samysadi

Hi, src is excluded as it's common practise to put only built files to npm package.

Source map files exist inside lib folder. May be there is some misconfuguration in package.json, but I'm not sure.

How do you import jsona package?

olosegres avatar May 15 '22 07:05 olosegres

Hello,

Thank you for taking time to answer this.

I import it through a regular static import statement.

The package is working perfectly fine and this may be considered a low priority issue. There is just this annoying warning issued by webpack when running the start script of create-react-app (check the link I sent before).

Regards.

samysadi avatar May 15 '22 10:05 samysadi

Fixed in version 1.11.0 Please check and reopen issue if necessary

olosegres avatar Nov 22 '22 19:11 olosegres