Open Closed

node_modules/source-map/source-map' not found #2812


User avatar
0
Radoslav created
  • ABP Framework version: v5.2.0-rc.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I generated solution with abp suite v5.2.0-rc.2. I have this error in all web apps: Admin, Public and Identity.

Severity Code Description Project Path File Line Suppression State Error TS6053 File 'D:/Acme.HelpDesktop52/src/Acme.HelpDesktop52.Admin.Web/node_modules/source-map/source-map' not found. The file is in the program because: Root file specified for compilation Acme.HelpDesktop52.Admin.Web JavaScript Content Files 1 Active

Thanks


4 Answer(s)
  • User Avatar
    0
    uyarbtrlp created

    I have the same issue in other versions such as 5.1, 5.0

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, I guess this problem is related to VS2021, if you use VS2021 as IDE can you try to run the project from CLI (dotnet run)?

  • User Avatar
    0
    Radoslav created

    This is why source map was requested as a deep dependency of abp.aspnetcore.mvc.ui.theme.lepton theme

    npm ls source-map my-app@1.0.0 D:\Volosoft\AbpCommercial\Acme.HelpDesktop52\src\Acme.HelpDesktop52.Web.Public -- @volo/abp.aspnetcore.mvc.ui.theme.lepton@5.2.0-rc.2 -- @volo/abp.aspnetcore.mvc.ui.theme.commercial@5.2.0-rc.2 -- @abp/aspnetcore.mvc.ui.theme.shared@5.2.0-rc.2 -- @abp/aspnetcore.mvc.ui@5.2.0-rc.2 -- gulp@4.0.2 -- glob-watcher@5.0.5 -- anymatch@2.0.0 -- micromatch@3.1.10 -- snapdragon@0.8.2 -- source-map@0.5.7

    I don't know what is it in the build configuration that complains.

  • User Avatar
    1
    Radoslav created

    As suggested here: https://developercommunity.visualstudio.com/t/ts6053-node-modulessource-mapsource-map-not-found/1412153

    I added bolded text below, closed the solution, opened and rebuild.

    Add this to your package.json "dependencies": { "@volo/abp.aspnetcore.mvc.ui.theme.lepton": "^5.2.0-rc.2", "@volo/account": "^5.2.0-rc.2" }, "typings": "source-map.d.ts"

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11