Starts in:
1 DAY
14 HRS
58 MIN
2 SEC
Starts in:
1 D
14 H
58 M
2 S
Open Closed

JavaScript error after migrating net6 to net7 #5714


User avatar
0
igoron761 created

After migrating form net6 to net7 got JavaScript error Uncaught SyntaxError: Cannot use 'import.meta' outside a module dotnet.7.0.10.khjdprvm7d.js:8 All packages updated, all stackoverflow advices checked Problem also described here https://support.abp.io/QA/Questions/4294/Error-after-upgrading-6x-to-70-in-Blazor-WASM But it is not my case. Please advice, what else should I check

  • ABP Framework version: v7.3.2
  • UI Type:Blazor WASM
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:

Uncaught SyntaxError SyntaxError: Cannot use 'import.meta' outside a module at (program) (localhost꞉44307/_framework/dotnet.7.0.10.khjdprvm7d.js:8:27) CSS Hot Reload ignoring https://localhost:44307/global.css?_v=637728566380415296 because it was inaccessible or had more than 5000 rules. CSS Hot Reload ignoring https://localhost:44307/_content/Telerik.UI.for.Blazor.Trial/css/kendo-theme-default/all.css because it was inaccessible or had more than 5000 rules. CSS Hot Reload ignoring https://localhost:44307/styles/main.css because it was inaccessible or had more than 5000 rules. CSS Hot Reload ignoring https://localhost:44307/styles/custom-theme_v10.css because it was inaccessible or had more than 5000 rules. The thread 0x0 has exited with code 0 (0x0). The program 'JavaScript debug adapter: localhost:44307' has exited with code 4294967295 (0xffffffff). The program '' has exited with code 4294967295 (0xffffffff). The program '[30680] dotnet.exe' has exited with code 4294967295 (0xffffffff).

  • Steps to reproduce the issue: Migrated project from net6 to net7

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can update your js files of blazor wasm

    Run abp bundle command in your blazor wasm project.

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