Starts in:
0 DAY
11 HRS
49 MIN
31 SEC
Starts in:
0 D
11 H
49 M
31 S
Open Closed

After Updating MyProject from v4.4.0 to v5.1.3 Getting (CS1061) and (TS6053) #2630


User avatar
0
krushnakant created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v5.1.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:After updating my project's version* from v4.4.0 to v5.1.3** . These two errors I am getting.*
  • (CS1061) : "IApiScopeRepository" does not contain a definition for "GetByNameAsync" and no accessible of type "IApiScopeRepository" could be found (are you missing a using directive or an assembly reference?)
  • (TS6053) : File 'ProjectsPath /src/Project.Web/node_modules/source-map/source-map' not found. The file is in the program because Root file specified for compilation. "Project.Web JavaScript Content Files"
  • Steps to reproduce the issue:

3 Answer(s)
  • User Avatar
    1
    enisn created
    Support Team .NET Developer

    Hi @krushnakant

    Have you followed Migrations Guide properly? https://docs.abp.io/en/abp/latest/Migration-Guides/Abp-5_0#identityserver

    IApiScopeRepository.GetByNameAsync method renamed as FindByNameAsync.

    For the second problem, please try to execute abp install-libs command under your Project.Web folder.

  • User Avatar
    0
    krushnakant created

    Hi @enisn

    Thanks for this guide https://docs.abp.io/en/abp/latest/Migration-Guides/Abp-5_0#identityserver and also for first problem.

    I have followed https://docs.abp.io/en/abp/4.3/Migration-Guides/Upgrading-Startup-Template . As you suggested https://docs.abp.io/en/abp/latest/Migration-Guides/Abp-5_0#identityserver I'll do additional breaking changes from this guide.

    But I am still getting second problem [ (TS6053) : File 'ProjectsPath /src/Project.Web/node_modules/source-map/source-map' not found. The file is in the program because Root file specified for compilation. "Project.Web JavaScript Content Files"] after tried abp install-libs in Project.Web folder.

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Can you try to execute yarn command before running abp install-libs

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06