Open milesfrain opened 5 years ago
This issue affects InteractNext
https://github.com/JuliaGizmos/InteractNext.jl/issues/21
You can also use include I think
# Packages
using WebIO
#using JSExpr
include("..\\Lib\\JSExpr.jl")
# using Vue
include("..\\Lib\\Vue.jl")
template = dom"p[v-if=visible]"("{{message}}")
Vue.vue(template, [:message=>"hello", :visible=>true])
Still 2 warnings and 1 error though
┌ Warning: newid(prefix) is deprecated. Scopes don't need this anymore. To get the scope's id, use scopeid(scope) │ caller = ip:0x0 └ @ Core :-1 ┌ Warning: Scope(id; kwargs...) is deprecated, use Scope(kwargs...) instead. │ caller = ip:0x0 └ @ Core :-1 ERROR: LoadError: MethodError: no method matching iterate(::typeof(values)) Stacktrace: [1] iterate at .\generator.jl:44 [inlined] [2] collect(::Base.Generator{typeof(values),typeof(JSExpr.jsexpr)}) at .\array.jl:606 [3] map(::Function, ::Function) at .\abstractarray.jl:2044 [4] #vue#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Node{WebIO.DOM}, ::Array{Pair{Symbol,Any},1}) at c:\Cloud Files\Projecten\Generator\Lib\Vue.jl:69 [5] vue(::Node{WebIO.DOM}, ::Array{Pair{Symbol,Any},1}) at c:\Cloud Files\Projecten\Generator\Lib\Vue.jl:26 [6] top-level scope at none:0 [7] include at .\boot.jl:326 [inlined] [8] include_relative(::Module, ::String) at .\loading.jl:1038 [9] include(::Module, ::String) at .\sysimg.jl:29 [10] exec_options(::Base.JLOptions) at .\client.jl:267 [11] _start() at .\client.jl:436
Was someone able to fix this?
I'm guessing this a compatibility issue with Julia 1.0.0+. I'm on Julia 1.1.0.