Error using PackageCompiler for Blink

I’m on windows 10.
Here is the error:

┌ Warning: Error requiring Mux from WebIO:
│ LoadError: ArgumentError: Package WebIO does not have JSON in its dependencies:
│ - If you have WebIO checked out for development and have
│   added JSON as a dependency but haven't updated your primary
│   environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with WebIO
│ Stacktrace:
│  [1] require(::Module, ::Symbol) at .\loading.jl:905
│  [2] include_string(::Module, ::String, ::String) at .\loading.jl:1080
│  [3] top-level scope at C:\Users\User\.julia\packages\WebIO\nTMDV\src\WebIO.jl:104
│  [4] eval at .\boot.jl:331 [inlined]
│  [5] eval at C:\Users\User\.julia\packages\WebIO\nTMDV\src\WebIO.jl:1 [inlined]
│  [6] (::WebIO.var"#71#83")() at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:85
│  [7] err(::Any, ::Module, ::String) at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:42
│  [8] (::WebIO.var"#70#82")() at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:84
│  [9] withpath(::Any, ::String) at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:32
│  [10] (::WebIO.var"#69#81")() at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:83
│  [11] listenpkg(::Any, ::Base.PkgId) at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:15
│  [12] macro expansion at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:81 [inlined]
│  [13] __init__() at C:\Users\User\.julia\packages\WebIO\nTMDV\src\WebIO.jl:103
│ in expression starting at C:\Users\User\.julia\packages\WebIO\nTMDV\src\providers\mux.jl:1
└ @ Requires C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:44
┌ Warning: Error requiring WebSockets from WebIO:
│ LoadError: ArgumentError: Package WebIO does not have Sockets in its dependencies:
│ - If you have WebIO checked out for development and have
│   added Sockets as a dependency but haven't updated your primary
│   environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with WebIO
│ Stacktrace:
│  [1] require(::Module, ::Symbol) at .\loading.jl:905
│  [2] include_string(::Module, ::String, ::String) at .\loading.jl:1080
│  [3] top-level scope at C:\Users\User\.julia\packages\WebIO\nTMDV\src\WebIO.jl:122
│  [4] eval at .\boot.jl:331 [inlined]
│  [5] eval at C:\Users\User\.julia\packages\WebIO\nTMDV\src\WebIO.jl:1 [inlined]
│  [6] (::WebIO.var"#80#92")() at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:85
│  [7] err(::Any, ::Module, ::String) at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:42
│  [8] (::WebIO.var"#79#91")() at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:84
│  [9] withpath(::Any, ::String) at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:32
│  [10] (::WebIO.var"#78#90")() at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:83
│  [11] listenpkg(::Any, ::Base.PkgId) at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:15
│  [12] macro expansion at C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:81 [inlined]
│  [13] __init__() at C:\Users\User\.julia\packages\WebIO\nTMDV\src\WebIO.jl:121
│ in expression starting at C:\Users\User\.julia\packages\WebIO\nTMDV\src\providers\generic_http.jl:1
└ @ Requires C:\Users\User\.julia\packages\Requires\qy6zC\src\require.jl:44

Here is the code:

module TEST
using Blink

w = Ref{Window}()

function julia_main()
    w[] = Window()
    loadurl(w[], """file:///$(abspath("../data/test.html"))""")
    readline()
end

end # module

In TEST:
4-element Array{String,1}:
“Manifest.toml”
“Project.toml”
“data”
“src”
In data:
2-element Array{String,1}:
“logo.png”
“test.html”
In test.html:

<html>
<head>
<title>Start</title>
</head>
<body>
<img src="logo.png">
</body>
</html>

In src:
1-element Array{String,1}:
“TEST.jl”
In Manifest.toml:

# This file is machine-generated - editing it directly is not advised

[[AssetRegistry]]
deps = ["Distributed", "JSON", "Pidfile", "SHA", "Test"]
git-tree-sha1 = "b25e88db7944f98789130d7b503276bc34bc098e"
uuid = "bf4720bc-e11a-5d0c-854e-bdca1663c893"
version = "0.1.0"

[[Base64]]
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

[[BinDeps]]
deps = ["Libdl", "Pkg", "SHA", "URIParser", "Unicode"]
git-tree-sha1 = "46cf2c1668ad07aba5a9d331bdeea994a1f13856"
uuid = "9e28174c-4ba2-5203-b857-d8d62c4213ee"
version = "1.0.1"

[[Blink]]
deps = ["Base64", "BinDeps", "Distributed", "JSExpr", "JSON", "Lazy", "Logging", "MacroTools", "Mustache", "Mux", "Reexport", "Sockets", "WebIO", "WebSockets"]
git-tree-sha1 = "434893c1f9e9ce59be3f114641e99ef84c4d8f1a"
uuid = "ad839575-38b3-5650-b840-f874b8c74a25"
version = "0.12.3"

[[ColorTypes]]
deps = ["FixedPointNumbers", "Random"]
git-tree-sha1 = "c73d9cfc2a9d8433dc77f5bff4bddf46b1d78c20"
uuid = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
version = "0.10.3"

[[Colors]]
deps = ["ColorTypes", "FixedPointNumbers", "InteractiveUtils", "Reexport"]
git-tree-sha1 = "db9c215e2d92379d341e40dd1d5be893af2bfeb2"
uuid = "5ae59095-9a9b-59fe-a467-6f913c188581"
version = "0.12.1"

[[DataAPI]]
git-tree-sha1 = "176e23402d80e7743fc26c19c681bfb11246af32"
uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
version = "1.3.0"

[[DataValueInterfaces]]
git-tree-sha1 = "bfc1187b79289637fa0ef6d4436ebdfe6905cbd6"
uuid = "e2d170a0-9d28-54be-80f0-106bbe20a464"
version = "1.0.0"

[[Dates]]
deps = ["Printf"]
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"

[[Distributed]]
deps = ["Random", "Serialization", "Sockets"]
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"

[[FileWatching]]
uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"

[[FixedPointNumbers]]
git-tree-sha1 = "3ba9ea634d4c8b289d590403b4a06f8e227a6238"
uuid = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
version = "0.8.0"

[[FunctionalCollections]]
deps = ["Test"]
git-tree-sha1 = "04cb9cfaa6ba5311973994fe3496ddec19b6292a"
uuid = "de31a74c-ac4f-5751-b3fd-e18cd04993ca"
version = "0.5.0"

[[HTTP]]
deps = ["Base64", "Dates", "IniFile", "MbedTLS", "Sockets"]
git-tree-sha1 = "ec87d5e2acbe1693789efbbe14f5ea7525758f71"
uuid = "cd3eb016-35fb-5094-929b-558a96fad6f3"
version = "0.8.15"

[[Hiccup]]
deps = ["MacroTools", "Test"]
git-tree-sha1 = "6187bb2d5fcbb2007c39e7ac53308b0d371124bd"
uuid = "9fb69e20-1954-56bb-a84f-559cc56a8ff7"
version = "0.2.2"

[[IniFile]]
deps = ["Test"]
git-tree-sha1 = "098e4d2c533924c921f9f9847274f2ad89e018b8"
uuid = "83e8ac13-25f8-5344-8a64-a9f2b223428f"
version = "0.5.0"

[[InteractiveUtils]]
deps = ["Markdown"]
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"

[[IteratorInterfaceExtensions]]
git-tree-sha1 = "a3f24677c21f5bbe9d2a714f95dcd58337fb2856"
uuid = "82899510-4779-5014-852e-03e436cf321d"
version = "1.0.0"

[[JSExpr]]
deps = ["JSON", "MacroTools", "Observables", "WebIO"]
git-tree-sha1 = "829f37792c9a63904a95c3c579e3b5847b40802a"
uuid = "97c1335a-c9c5-57fe-bc5d-ec35cebe8660"
version = "0.5.2"

[[JSON]]
deps = ["Dates", "Mmap", "Parsers", "Unicode"]
git-tree-sha1 = "b34d7cef7b337321e97d22242c3c2b91f476748e"
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
version = "0.21.0"

[[Lazy]]
deps = ["MacroTools"]
git-tree-sha1 = "0bd934e15f5df97414aa81abf74ba8a2d5042964"
uuid = "50d2b5c4-7a5e-59d5-8109-a42b560f39c0"
version = "0.15.0"

[[LibGit2]]
deps = ["Printf"]
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"

[[Libdl]]
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"

[[LinearAlgebra]]
deps = ["Libdl"]
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

[[Logging]]
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"

[[MacroTools]]
deps = ["Markdown", "Random"]
git-tree-sha1 = "f7d2e3f654af75f01ec49be82c231c382214223a"
uuid = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
version = "0.5.5"

[[Markdown]]
deps = ["Base64"]
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"

[[MbedTLS]]
deps = ["Dates", "MbedTLS_jll", "Random", "Sockets"]
git-tree-sha1 = "426a6978b03a97ceb7ead77775a1da066343ec6e"
uuid = "739be429-bea8-5141-9913-cc70e7f3736d"
version = "1.0.2"

[[MbedTLS_jll]]
deps = ["Libdl", "Pkg"]
git-tree-sha1 = "c83f5a1d038f034ad0549f9ee4d5fac3fb429e33"
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
version = "2.16.0+2"

[[Mmap]]
uuid = "a63ad114-7e13-5084-954f-fe012c677804"

[[Mustache]]
deps = ["Printf", "Tables"]
git-tree-sha1 = "fcfc8266461f2905534aa00c0fc59b8751b1026e"
uuid = "ffc61752-8dc7-55ee-8c37-f3e9cdd09e70"
version = "1.0.3"

[[Mux]]
deps = ["AssetRegistry", "Base64", "HTTP", "Hiccup", "Lazy", "Pkg", "Sockets", "Test", "WebSockets"]
git-tree-sha1 = "5b41f03d63400c290bab4e1a49fb9ac36de1084a"
uuid = "a975b10e-0019-58db-a62f-e48ff68538c9"
version = "0.7.0"

[[Observables]]
git-tree-sha1 = "11832878355305984235a2e90d0e3737383c634c"
uuid = "510215fc-4207-5dde-b226-833fc4488ee2"
version = "0.3.1"

[[OrderedCollections]]
git-tree-sha1 = "12ce190210d278e12644bcadf5b21cbdcf225cd3"
uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
version = "1.2.0"

[[Parsers]]
deps = ["Dates", "Test"]
git-tree-sha1 = "f0abb338b4d00306500056a3fd44c221b8473ef2"
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
version = "1.0.4"

[[Pidfile]]
deps = ["FileWatching", "Test"]
git-tree-sha1 = "1ffd82728498b5071cde851bbb7abd780d4445f3"
uuid = "fa939f87-e72e-5be4-a000-7fc836dbe307"
version = "1.1.0"

[[Pkg]]
deps = ["Dates", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "UUIDs"]
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"

[[Printf]]
deps = ["Unicode"]
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"

[[REPL]]
deps = ["InteractiveUtils", "Markdown", "Sockets"]
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"

[[Random]]
deps = ["Serialization"]
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[[Reexport]]
deps = ["Pkg"]
git-tree-sha1 = "7b1d07f411bc8ddb7977ec7f377b97b158514fe0"
uuid = "189a3867-3050-52da-a836-e630ba90ab69"
version = "0.2.0"

[[Requires]]
deps = ["UUIDs"]
git-tree-sha1 = "d37400976e98018ee840e0ca4f9d20baa231dc6b"
uuid = "ae029012-a4dd-5104-9daa-d747884805df"
version = "1.0.1"

[[SHA]]
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"

[[Serialization]]
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"

[[Sockets]]
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"

[[TableTraits]]
deps = ["IteratorInterfaceExtensions"]
git-tree-sha1 = "b1ad568ba658d8cbb3b892ed5380a6f3e781a81e"
uuid = "3783bdb8-4a98-5b6b-af9a-565f29a5fe9c"
version = "1.0.0"

[[Tables]]
deps = ["DataAPI", "DataValueInterfaces", "IteratorInterfaceExtensions", "LinearAlgebra", "TableTraits", "Test"]
git-tree-sha1 = "c45dcc27331febabc20d86cb3974ef095257dcf3"
uuid = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
version = "1.0.4"

[[Test]]
deps = ["Distributed", "InteractiveUtils", "Logging", "Random"]
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[[URIParser]]
deps = ["Unicode"]
git-tree-sha1 = "53a9f49546b8d2dd2e688d216421d050c9a31d0d"
uuid = "30578b45-9adc-5946-b283-645ec420af67"
version = "0.4.1"

[[UUIDs]]
deps = ["Random", "SHA"]
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"

[[Unicode]]
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"

[[WebIO]]
deps = ["AssetRegistry", "Base64", "Distributed", "FunctionalCollections", "JSON", "Logging", "Observables", "Pkg", "Random", "Requires", "Sockets", "UUIDs", "WebSockets", "Widgets"]
git-tree-sha1 = "add6b526464ab77e9decef9d2dafa46c54af6617"
uuid = "0f1e0344-ec1d-5b48-a673-e5cf874b6c29"
version = "0.8.14"

[[WebSockets]]
deps = ["Base64", "Dates", "Distributed", "HTTP", "Logging", "Random", "Sockets", "Test"]
git-tree-sha1 = "13f763d38c7a05688938808b49cb29b18b60c8c8"
uuid = "104b5d7c-a370-577a-8038-80a2059c5097"
version = "1.5.2"

[[Widgets]]
deps = ["Colors", "Dates", "Observables", "OrderedCollections"]
git-tree-sha1 = "fc0feda91b3fef7fe6948ee09bb628f882b49ca4"
uuid = "cc8bc4a8-27d6-5769-a93b-9d913e69aa62"
version = "0.6.2"

In Project.toml:

name = "TEST"
uuid = "95804a86-45bb-4d7f-8b74-d8abf6a8b09f"
authors = ["ZHIWEN-PING"]
version = "0.1.0"

[deps]
Blink = "ad839575-38b3-5650-b840-f874b8c74a25"

Thanks in advance!

I solved it! I had to copy and paste the dependencies over to the executable, now it works fine.

1 Like

I am also experiencing this issue and am hopeful that I can do what you did to resolve the issue. However, it’s not immediately apparent which files you copied into the folder and how you found/generated them. Can you confirm? Thanks.

Sorry, it has been a while since I did this, so I might be wrong.
I think I just created a new blank Package with the dependancies I wanted, and copied over the Manifest.toml, and Project.toml. I think the error was because I was messing around with those files.

I have exactly the same problem. I already tried creating a new project with the same dependencies and copying over the Manifest.toml and Project.toml files. The error remains the same.

It is quite strange to me, because WebIO has JSON in its dependencies in the Manifest.toml file.