I'm trying to use relay-runtime with freshjs by importing it with these strings in my import map:
"react-relay": "https://esm.sh/react-relay#14.1.0?alias=react:preact/compat,react-dom:preact/compat,#types/react:preact/compat",
"relay-runtime": "https://esm.sh/relay-runtime#14.1.0?alias=react:preact/compat,react-dom:preact/compat,#types/react:preact/compat",
and when doing so, I get this error:
error: Uncaught (in promise) TypeError: Jl is not a function
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:2:4933
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:2:1389
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:2:7965
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:2:1389
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:3:82513
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:2:1389
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:3:85815
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:2:1389
at https://esm.sh/v94/relay-runtime#14.1.0/deno/relay-runtime.js:3:85832
I tried to import type declarations from https://esm.sh/v94/#types/relay-runtime#14.1.0/index.d.ts but am still having this issue. I had also tried to use v14.0.0 but then I get this error:
error: Uncaught (in promise) Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.
at V (https://esm.sh/v96/invariant#2.2.4/deno/invariant.js:2:612)
at sv (https://esm.sh/v96/relay-runtime#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/relay-runtime.js:2:45152)
at https://esm.sh/v96/react-relay#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/react-relay.js:2:3114
at https://esm.sh/v96/react-relay#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/react-relay.js:2:2662
at https://esm.sh/v96/react-relay#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/react-relay.js:2:70288
at https://esm.sh/v96/react-relay#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/react-relay.js:2:2662
at https://esm.sh/v96/react-relay#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/react-relay.js:2:71428
at https://esm.sh/v96/react-relay#14.0.0/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0/deno/react-relay.js:2:2662
Any help is appreciated. Thank you. I also tried importing initially without the query string
Related
Describe the bug
when using the newest version of vue (3.2.38) with luxon (3.0.3) and tabulator-tables (5.3.3), if a formatter of type datetime is defined, the formatter throws an error:
datetime.js:2 Uncaught ReferenceError: luxon is not defined
at Format.datetime$1 (datetime.js:2:30)
at Format.formatValue (Format.js:126:47)
at InternalEventBus.js:76:33
at Array.forEach (<anonymous>)
at InternalEventBus._chain (InternalEventBus.js:75:21)
at Proxy.chain (CoreFeature.js:82:30)
at Proxy._generateContents (Cell.js:99:14)
at Proxy.layoutElement (Cell.js:210:8)
at Proxy.getElement (Cell.js:136:10)
at BasicHorizontal.js:10:33
you can check a simplified version here on codesandbox
Does anyone have any idea what I'm doing wrong?
PS: REALLY BAD WORKAROUND
a very bad way of resolving the issue for the moment is to uncomment line 8 of MyTable.vue, ensuring that window.DateTime exists so that luxon.DateTime is not reached...
Screenshots
I have the following code.
getCallStub.returns(new Promise((resolve)=>{
resolve([item]);
}));
But there has to be an easier way so I look at the Sinon docs and see something like getCallStub.resolve([item]); should work but I get...
TypeError: getCallStub.resolve is not a function
I also tried getCallStub.usingPromise(Promise).resolve([item]); and got the same...
TypeError: getCallStub.usingPromise(...).resolve is not a function
I double checked the node_modules and I am at a version greater than 2 (6.3.5) so why can't I use the resolve function?
From the docs:
stub.resolves(value);
Seems you just forgot an s and your code should be
getCallStub.resolves([item]);
I'm simply importing at the top of my file as so:
import DayPicker from 'react-day-picker'
And then I'm getting this error in my console and can't seem to figure it out.
Weekdays.js?f84d:23 Uncaught TypeError: Super expression must either be null or a function, not undefined
at _inherits (Weekdays.js?f84d:23)
at eval (Weekdays.js?f84d:26)
at eval (Weekdays.js?f84d:77)
at Object../node_modules/react-day-picker/lib/src/Weekdays.js (person.js:4066)
at __webpack_require__ (common.js:694)
at fn (common.js:115)
at eval (Month.js?f52a:17)
at Object../node_modules/react-day-picker/lib/src/Month.js (person.js:4014)
at __webpack_require__ (common.js:694)
at fn (common.js:115)
I'm on React v0.14.8 and I'm getting the same error. In v6.0.0 of react-day-picker, some components were converted to use React.PureComponent (which was introduced in React v15.3.0). I believe this is why we're getting that error because our versions of React doesn't have React.PureComponent. The fix would be to upgrade your React to v15.3.0+.
If you are using react-day-picker v6.0, try to upgrade to v6.2 where the PureComponent has been replaced by shouldComponentUpdate. This should keep compatibility with React 0.14+
I am trying to use Sage on a mac and am not particularly computer savvy (e.g. I still haven't figured out what I am meant to do with PATH and find the installation documentation a bit forbidding). I am running sage from the command line from a particular folder which contains a file "test.sage" but when I put 'load("test.sage")' I get the following error message:
TypeError Traceback (most recent call last)
in ()
----> 1 load("test.sage")
/Applications/SageMath/src/sage/structure/sage_object.pyx in sage.structure.sage_object.load (/Applications/SageMath/src/build/cythonized/sage/structure/sage_object.c:11186)()
if sage.repl.load.is_loadable_filename(filename):
sage.repl.load.load(filename, globals())
return
/Applications/SageMath/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
if attach:
add_attached_file(fpath)
exec(preparse_file(open(fpath).read()) + "\n", globals)
elif ext == '.spyx' or ext == '.pyx':
if attach:
Error message
TypeError: expected string without null bytes"
Earlier on I was trying the same thing and getting the message:
"IOError('did not find file %r to load or attach'"
I wonder if someone could tell me what I am doing wrong or might try to fix the problem?
I'm getting the following error in the Chrome console:
Uncaught SyntaxError: Unexpected token ILLEGAL
At the start of my concatenated CSS file:
#import url("http://fonts.googleapis.com/css?family=Raleway:300,400,600")
This line ends up on its own, and it's specifically this line that throws the error:
I've had a look around and it seems this error should relate to invisible characters making their way into the code. Unfortunately in my case that doesn't seem to be true. I've even deleted this portion of code and re-written it by hand to make sure - no difference.
I use Stylus (with gulp) and the resulting compile is naturally what throws the error - is this maybe an issue with gulp-stylus? I've looked at the compiled code and can't track down any invisible characters there either…
Does anything else throw this error?
The error implies you are trying to load the style sheet with <script> instead of <link rel=stylesheet>.
CSS is not JavaScript and can't be treated as such.