Comments (11)
FWIW this is no longer a problem for me with opal 0.11.3 and opal-rspec 0.7.0.rc.2.
from opal-rspec.
this is my spec example project url: https://github.com/zw963/opal_rspec_example
from opal-rspec.
Same problem here with phantomjs runner or directly in browser
from opal-rspec.
Same problem also with phantomjs: https://travis-ci.org/inesita-rb/inesita
from opal-rspec.
It's still WIP and very unstable, but some work has been done on the elia/master
branch (see #74).
from opal-rspec.
Tried to use 0.7.0rc2
but with no luck:
/tmp/opal-nodejs-runner-20180818-5161-1il32su:292
if (value.$$is_a_module) {
^
TypeError: Cannot read property '$$is_a_module' of undefined
at Object.Opal.const_set (/tmp/opal-nodejs-runner-20180818-5161-1il32su:292:15)
at /tmp/opal-nodejs-runner-20180818-5161-1il32su:64190:12
at /tmp/opal-nodejs-runner-20180818-5161-1il32su:64249:7
at Opal.modules.inesita/browser (/tmp/opal-nodejs-runner-20180818-5161-1il32su:64250:5)
at Object.Opal.load (/tmp/opal-nodejs-runner-20180818-5161-1il32su:2192:7)
at Object_alloc.Opal.require [as $require] (/tmp/opal-nodejs-runner-20180818-5161-1il32su:2216:17)
at Opal.modules.inesita (/tmp/opal-nodejs-runner-20180818-5161-1il32su:64699:8)
at Object.Opal.load (/tmp/opal-nodejs-runner-20180818-5161-1il32su:2192:7)
at Object_alloc.Opal.require [as $require] (/tmp/opal-nodejs-runner-20180818-5161-1il32su:2216:17)
at Opal.modules.spec_helper (/tmp/opal-nodejs-runner-20180818-5161-1il32su:64716:15)```
from opal-rspec.
I'll close this, @fazibear ping me if you have repro instructions and I'll reopen.
from opal-rspec.
awesome, i will try it recent days, and will report here.
Thanks @elia !
from opal-rspec.
Hi, It seem like still not worked for me (maybe some low level error happen here ..., i leave opal almost one year ...)
╭─ 14:05 zw963 ⮀ ~/Project/opal/update_to_0.11_not_success/opal_rspec_example ⮀ ⭠ (d40b1f2) master *+ ➦ ruby-2.3.3@opal_rspec_example
╰─ $ bundle exec rake
Connecting to localhost:9222...
/usr/lib64/chromium/chromium --headless --disable-gpu --remote-debugging-port=9222
Connecting to localhost:9222...
Connecting to localhost:9222...
[1111/140629.286066:ERROR:gpu_process_transport_factory.cc(980)] Lost UI shared context.
DevTools listening on ws://127.0.0.1:9222/devtools/browser/109eac29-fdda-4923-a624-df66bf838c9b
Connecting to localhost:9222...
Object freezing is not supported by Opal
WARNING: Unable to find ~/.rspec because the HOME environment variable is not set. Called from .
undefined : object.$respond_to? is not a function
at coerce_to (file:///tmp/chrome-opal.js:2330:40)
at exit (file:///tmp/chrome-opal.js:4104:59)
at call (file:///tmp/chrome-opal.js:18126:25)
╭─ 14:06 zw963 ⮀ ~/Project/opal/update_to_0.11_not_success/opal_rspec_example ⮀ ⭠ (d40b1f2) master *+ ➦ ruby-2.3.3@opal_rspec_example
╰─ $ /usr/lib64/chromium/chromium --version
Chromium 70.0.3538.77
from opal-rspec.
I have the same problem using headless chrome.
from opal-rspec.
Probably, to update Opal-Rspec to 0.7.1
,
object.$respond_to? is not a function
error doesn't occur.
from opal-rspec.
Related Issues (20)
- Compiler/Line Number Metadata HOT 4
- Performance Improvement Ideas HOT 4
- issues with opal 0.10.0 HOT 4
- Results Reporting Sync/Async HOT 1
- filter_run_excluding not working? HOT 1
- how to require gem or a source file ? HOT 5
- stub_const doesn't work quite the same in opal 0.9 HOT 9
- Opal-Master Compatibility
- Sprockets HOT 1
- Support random order HOT 2
- Opal::RSpec::RakeTask HOT 4
- `expect_any_instance_of` is not working when using opal master HOT 5
- Trying to run phantomjs or in-browser tests throws Sprockets::FileNotFound HOT 3
- Get ` cannot load such file -- rake` when run test in browser. HOT 2
- Could not found jquery when use node as task runner. HOT 1
- Unable to require 'nodejs' in spec HOT 2
- uninitialized constant OPAL_PLATFORM HOT 8
- Headless Chrome support HOT 3
- Can you release a new version? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opal-rspec.