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
Install the marked-react package in a project
Attempt to run the project, webpack-dev-server --mode development; see error (below)
Observe that src is not in node_modules\marked-react directory
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'
Description
After installing the latest version of
marked-react
, I am seeing a runtime error (see "Additional Context" below). Thesource-map-loader
package is looking for files inC:\myproject\node_modules\marked-react\src\
, but thesrc
directory is missing.I have tried uninstalling and reinstalling the package, but the problem persists.
Steps to reproduce
marked-react
package in a projectwebpack-dev-server --mode development
; see error (below)src
is not innode_modules\marked-react
directoryEnvironment
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: