gaelj / BlazorCodeMirror6

Blazor wrapper for CodeMirror 6
MIT License
20 stars 2 forks source link

Unable to build solution #14

Closed pm64 closed 10 months ago

pm64 commented 10 months ago

In attempting to build the solution, I'm getting an error during execution of the "Rollup" target in CodeMirror6.csproj:

   <Target Name="Rollup" BeforeTargets="BeforeBuild;BeforeRebuild">
    <Exec Command="cd NodeLib &amp;&amp; npx rollup --config" />
  </Target>

The error is as follows:

[!] Error: Cannot find module './constants'
Require stack:
- C:\Users\User\Desktop\BlazorCodeMirror6-main\CodeMirror6\NodeLib\node_modules\picomatch\lib\utils.js
- C:\Users\User\Desktop\BlazorCodeMirror6-main\CodeMirror6\NodeLib\node_modules\picomatch\lib\scan.js
- C:\Users\User\Desktop\BlazorCodeMirror6-main\CodeMirror6\NodeLib\node_modules\picomatch\lib\picomatch.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Function.Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (C:\Users\User\Desktop\BlazorCodeMirror6-main\CodeMirror6\NodeLib\node_modules\picomatch\lib\utils.js:10:5)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)

I can't figure out what "./constants" is, any ideas?

pm64 commented 10 months ago

Closing due to suspicion that this is either a glitch or specific to my environment. Will re-open if needed.

gaelj commented 10 months ago

You need npm and npx to be installed. Deleting the node_modules directory before building might help as well.