# Error "unexpected token G.." while running PackageCompiler on Blink.jl

**URL:** <https://discourse.julialang.org/t/error-unexpected-token-g-while-running-packagecompiler-on-blink-jl/26063>\
**Category:** Web Stack\
**Created:** [July 6, 2019, 8:11am UTC](https://discourse.julialang.org/t/error-unexpected-token-g-while-running-packagecompiler-on-blink-jl/26063 "2019-07-06T08:11:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KestutisMa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kestutisma/32/7835_2.png) [@KestutisMa](https://discourse.julialang.org/u/KestutisMa)\
**Post date:** [July 6, 2019, 8:11am UTC](https://discourse.julialang.org/t/error-unexpected-token-g-while-running-packagecompiler-on-blink-jl/26063/1 "2019-07-06T08:11:23Z")

</div>

Hi, I want to compile Blink to increase it’s performance. During Blink.jl package compilation JS error is shown.  
I use PackageCompiler# **sd-notomls** (using official branch also throws that error).

```julia
julia> compile_incremental(:Blink)
┌ Warning: The following test dependencies are not installed: Pkg.Types.PackageSpec[].
│ Snooping based on test scripts will likely fail.
│ Please use `install = true` or install those packages manually
└ @ PackageCompiler ~/.julia/packages/PackageCompiler/UQ5UO/src/snooping.jl:146
WARNING: could not import Base.quit into AtomShell
┌ Warning: Please upgrade Blink for a smoother integration with WebIO.
│ caller = ip:0x0
└ @ Core :-1:

```

Then compilation halts and message is displayed:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/2/4/241c7395f037e208fe600eb8acd985cb7aae7db1.png)  
Maybe anybody can comment on that?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [July 6, 2019, 8:37am UTC](https://discourse.julialang.org/t/error-unexpected-token-g-while-running-packagecompiler-on-blink-jl/26063/2 "2019-07-06T08:37:36Z")

</div>

That’s a [Blink.jl bug](https://github.com/JunoLab/Blink.jl/issues/191). Can you try with `Blink#master`?

---

<div class="post-metadata">

**Author:** ![KestutisMa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kestutisma/32/7835_2.png) [@KestutisMa](https://discourse.julialang.org/u/KestutisMa)\
**Post date:** [July 6, 2019, 9:19am UTC](https://discourse.julialang.org/t/error-unexpected-token-g-while-running-packagecompiler-on-blink-jl/26063/3 "2019-07-06T09:19:06Z")

</div>

#master worked, thanks!  
Looks like compiling effectively reduced startup time of Blink. 😉

```julia
julia> @time using Blink; w = Window();
  6.663862 seconds (9.15 M allocations: 477.321 MiB, 4.80% gc time)

```

```julia
julia> @time using Blink; w = Window();
  0.000478 seconds (282 allocations: 15.094 KiB)
```
