sibiraj-s / marked-react

⚛️ Render Markdown as React components
https://sibiraj-s.github.io/marked-react/
MIT License
70 stars 11 forks source link

Missing src directory #10

Closed bryanbharper closed 1 year ago

bryanbharper commented 1 year ago

Description

After installing the latest version of marked-react, I am seeing a runtime error (see "Additional Context" below). The source-map-loader package is looking for files in C:\myproject\node_modules\marked-react\src\, but the src directory is missing.

I have tried uninstalling and reinstalling the package, but the problem persists.

Steps to reproduce

  1. Install the marked-react package in a project
  2. Attempt to run the project, webpack-dev-server --mode development; see error (below)
  3. Observe that src is not in node_modules\marked-react directory

Environment

Operating system: Windows Package manager: npm marked-react package version: 1.3.1 source-map-loader: 3.0.2 || 4.0.1

Additional context Here is the full runtime error:

Compiled with problems:

WARNING in ./node_modules/marked-react/dist/marked-react.js

Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\myproject\node_modules\marked-react\src\Markdown.ts' file: Error: ENOENT: no such file or directory, open 'C:\myproject\node_modules\marked-react\src\Markdown.ts'

WARNING in ./node_modules/marked-react/dist/marked-react.js

Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\myproject\node_modules\marked-react\src\ReactParser.ts' file: Error: ENOENT: no such file or directory, open 'C:\myproject\node_modules\marked-react\src\ReactParser.ts'

WARNING in ./node_modules/marked-react/dist/marked-react.js

Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\myproject\node_modules\marked-react\src\ReactRenderer.ts' file: Error: ENOENT: no such file or directory, open 'C:\myproject\node_modules\marked-react\src\ReactRenderer.ts'

WARNING in ./node_modules/marked-react/dist/marked-react.js

Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\myproject\node_modules\marked-react\src\helpers.ts' file: Error: ENOENT: no such file or directory, open 'C:\myproject\node_modules\marked-react\src\helpers.ts'
sibiraj-s commented 1 year ago

Should be fixed in v1.3.2