Failed to precompile NeuralPDE

已经试过重新安装,不能解决问题。 :smiling_face_with_tear:
(julia) pkg> st
Status D:\NumericalCalculations\julia\Project.toml
[b30e2e7b] ClassicalOrthogonalPolynomials v0.7.2
[667455a9] Cubature v1.5.1
[a93c6f00] DataFrames v1.5.0
[31c24e10] Distributions v0.25.86
[28b8d3ca] GR v0.71.7
[b2108857] Lux v0.4.44
⌃ [961ee093] ModelingToolkit v8.46.1
[2774e3e8] NLsolve v4.5.1
[315f7962] NeuralPDE v5.4.0
[7f7a1694] Optimization v3.12.1
[42dfb2eb] OptimizationOptimisers v0.1.2
[91a5bcdd] Plots v1.38.8
[67601950] Quadrature v2.1.0
[f2b01f46] Roots v2.0.10
[276daf66] SpecialFunctions v2.2.0

下面是错误信息

[ Info: Precompiling NeuralPDE [315f7962-48a3-4962-8226-d0f33b1235f0]
ERROR: LoadError: UndefVarError: @nograd not defined

Some of the types have been truncated in the stacktrace for improved reading. To emit complete information
in the stack trace, evaluate TruncatedStacktraces.VERBOSE[] = true and re-run the code.

Stacktrace:
[1] include
@ .\Base.jl:419 [inlined]
[2] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
@ Base .\loading.jl:1554
[3] top-level scope
@ stdin:1
in expression starting at C:\Users\Alex.julia\packages\NeuralPDE\pmYyp\src\NeuralPDE.jl:1
in expression starting at stdin:1
ERROR: Failed to precompile NeuralPDE [315f7962-48a3-4962-8226-d0f33b1235f0] to C:\Users\Alex.julia\compiled\v1.8\NeuralPDE\jl_244E.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base .\loading.jl:1707
[3] compilecache
@ .\loading.jl:1651 [inlined]
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1337
[5] _require_prelocked(uuidkey::Base.PkgId)
@ Base .\loading.jl:1200
[6] macro expansion
@ .\loading.jl:1180 [inlined]
[7] macro expansion
@ .\lock.jl:223 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1144
[9] eval
@ .\boot.jl:368 [inlined]
[10] eval
@ .\Base.jl:65 [inlined]
[11] repleval(m::Module, code::Expr, #unused#::String)
@ VSCodeServer c:\Users\Alex.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\repl.jl:222
[12] (::VSCodeServer.var"#107#109"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\Alex.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\repl.jl:186
[13] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging .\logging.jl:511
[14] with_logger
@ .\logging.jl:623 [inlined]
[15] (::VSCodeServer.var"#106#108"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\Alex.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\repl.jl:187
[16] #invokelatest#2
@ .\essentials.jl:729 [inlined]
[17] invokelatest(::Any)
@ Base .\essentials.jl:726
[18] macro expansion
@ c:\Users\Alex.vscode\extensions\julialang.language-julia-1.47.2\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
[19] (::VSCodeServer.var"#61#62")()
@ VSCodeServer .\task.jl:484

已通过重新安装Julia的方式解决,参考 安装Plots一直报错,可能是系统环境有问题,来求助 - #15,来自 Deku-chen