ERROR in undefined is not iterable! # multi main - reactjs

After updating some of the packages, my compilation fails. And the error doesn't seems to be very helpful.
I have no clues where the error is. Already tried removing a lot of things, and the errors persists.
I've pushed the project with the issue here: https://github.com/KadoBOT/reaxor/tree/need-validation
The error appears in two places, in the first line after I npm start and in the last line after the bundle finishes
(...)
[0] multi main 64 bytes {0} [built] [1 error]
[1] (webpack)-dev-server/client?http://localhost:3000 2.67 kB {0} [built]
[2] ./~/url/url.js 22.3 kB {0} [built]
(...)
And:
(...)
ERROR in undefined is not iterable!
# multi main
webpack: bundle is now VALID.
Anyone experienced the same problem after upgrading packages? How do I solve this, since there is no hint, where the issue is?

Just saw this tweet from babel: https://twitter.com/babeljs/status/727301512041512961
Might help you with your problem? I have a team member running into the same issue just now and we are trying that out...

Related

Invalid formula: /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/buck.rb

I ran the brew command to install Facebook homebrew tap. I have a M1 Apple Silicon Chipset and use a terminal under Rosetta for brew commands.
brew tap facebook/fb
I got the error message:
==> Tapping facebook/fb
Cloning into '/usr/local/Homebrew/Library/Taps/facebook/homebrew-fb'...
remote: Enumerating objects: 46, done.
remote: Counting objects: 100% (46/46), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 333 (delta 27), reused 24 (delta 13), pack-reused 287
Receiving objects: 100% (333/333), 5.44 MiB | 9.18 MiB/s, done.
Resolving deltas: 100% (179/179), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/buck.rb
buck: Calling depends_on :java is disabled! Use "depends_on "openjdk#11", "depends_on "openjdk#8" or "depends_on "openjdk" instead.
Please report this issue to the facebook/fb tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/buck.rb:19
Warning: Calling depends_on :osxfuse is deprecated! There is no replacement.
Please report this issue to the facebook/fb tap (not Homebrew/brew or Homebrew/core):
/usr/local/Homebrew/Library/Taps/facebook/homebrew-fb/xar.rb:8
Error: Cannot tap facebook/fb: invalid syntax in tap!
I searched for the facebook/fb tap on Google, I found a GitHib repo but reporting errors is unactivated: https://github.com/facebook/homebrew-fb
The simplest solution you can do is fork the Facebook/FB repository into your GitHub account then change the 19th line in buck.rb file. It should be like this:
old one: depends_on java: "1.8"
new one: depends_on "openjdk#8"
The reason we do this Buck still relies on Java 8.
After you do this you can simply open your terminal and write:
brew tap {yourGithubAccountName}/homebrew-fb
then
brew install buck

testcafe compilation failure due to `import type` - requires update to Typescript version 3.8

TLDR:
The version of TS that gets installed with testcafe is version 3.5.3. However, in order to use import Type syntax, which is used by various libraries, such as jest/create-react-app, etc, we need to be on TS version 3.8 at minimum.
When I try to run a TS file with testcafe, the error I get is the following:
$ ./scripts/test_smoke.sh --debug-on-fail test.ts
Hash: 43a08709b49b552d25bc
Version: webpack 4.41.5
Time: 2113ms
Built at: 09/07/2020 1:26:25 PM
Asset Size Chunks Chunk Names
index.js 1.92 MiB main [emitted] main
Entrypoint main = index.js
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {main} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {main} [built]
[./test/smoke/polly/index.js] 3.79 KiB {main} [built]
+ 4 hidden modules
ERROR Cannot prepare tests due to an error.
Error: TypeScript compilation failed.
/Users/jonathan/web/node_modules/#testing-library/dom/node_modules/pretty-format/build/index.d.ts (7, 13): '=' expected.
/Users/jonathan/web/node_modules/#testing-library/dom/node_modules/pretty-format/build/index.d.ts (7, 18): ';' expected.
/Users/jonathan/web/node_modules/#testing-library/dom/node_modules/pretty-format/build/index.d.ts (7, 31): ';' expected.
All of these *.d.ts use the import Type syntax.

Cannot use FITSIO in Julia

I just started using Julia and installed the FITSIO package. When loading it I get the following error
julia> using FITSIO
[ Info: Precompiling FITSIO [525bcba6-941b-5504-bd06-fd0dc1a4d2eb]
ERROR: LoadError: syntax: extra token "ImageHDU" after end of expression
Stacktrace:
[1] include at .\boot.jl:317 [inlined]
[2] include_relative(::Module, ::String) at .\loading.jl:1038
[3] include(::Module, ::String) at .\sysimg.jl:29
[4] top-level scope at none:2
[5] eval at .\boot.jl:319 [inlined]
[6] eval(::Expr) at .\client.jl:389
[7] top-level scope at .\none:3
in expression starting at C:\Users\romain\.julia\packages\FITSIO\WueGk\src\FITSIO.jl:54
ERROR: Failed to precompile FITSIO [525bcba6-941b-5504-bd06-fd0dc1a4d2eb] to C:\Users\romain\.julia\compiled\v1.0\FITSIO\mbga9.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] macro expansion at .\logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1184
[4] macro expansion at .\logging.jl:311 [inlined]
[5] _require(::Base.PkgId) at .\loading.jl:941
[6] require(::Base.PkgId) at .\loading.jl:852
[7] macro expansion at .\logging.jl:311 [inlined]
[8] require(::Module, ::Symbol) at .\loading.jl:834
I tried to remove and add again the FITSIO package, but I always get the same error. The stacktrace seems to go to line 54 of FITSIO.jl So here is the content of this file from line 46 to 57
import .Libcfitsio: libcfitsio,
fits_assert_ok,
fits_assert_isascii,
TYPE_FROM_BITPIX
# HDU Types
#compat abstract type HDU end
type ImageHDU <: HDU
fitsfile::FITSFile
ext::Int
end
Do you know how to make this package work?
Thanks :)
Here is the answer from the FITSIO developers:
The latest stable version of this package isn't compatible with Julia
1.0. This has been already fixed in the development version, but we haven't tagged a new version since then.
Remove FITSIO.jl with
pkg> rm FITSIO
pkg> update
pkg> add FITSIO
pkg> dev FITSIO
After the rm, make sure you don't have any FITSIO.jl leftover, then
you can reinstall and switch to the development version within the
package manager, without installing another package
It appears that Julia automatically fetched the wrong package with
add FITSIO
I solved the problem by forcing the download URL to be
add https://github.com/JuliaAstro/FITSIO.jl

angularjs gulp build fail angular not defined

Hi i'm building an app with gulp build command after a few seconds shows an error "angular is no defined" and several error more, this is the log :
{lamb} gulp build
[23:45:11] Requiring external module babel-register
[23:45:13] Using gulpfile C:\Apps\test\gulpfile.babel.js
[23:45:13] Starting 'lint'...
[23:45:14] Starting 'styles'...
[23:45:15] Starting 'scripts'...
[23:45:15] Starting 'images'...
[23:45:16] Starting 'fonts'...
[23:45:16] Starting 'extras'...
[23:45:16] Finished 'images' after 923 ms
[23:45:16] Finished 'fonts' after 90 ms
[23:45:16]
C:\Apps\test\app\scripts\main.js
3:10 error "angular" is not defined no-undef
5:34 error A space is required after ',' comma-spacing
9:12 error Extra space after key "controller" key-spacing
10:11 error Trailing spaces not allowed no-trailing-spaces
12:11 error Extra space after key "templateUrl" key-spacing
13:12 error Extra space after key "controller" key-spacing
16:10 error Extra space after key "templateUrl" key-spacing
17:12 error Extra space after key "controller" key-spacing
C:\Apps\test\app\scripts\controllers\controllerView.js
2:1 error "angular" is not defined no-undef
✖ 9 problems (9 errors, 0 warnings)
[23:45:16] 'lint' errored after 3.17 s
[23:45:16] ESLintError in plugin 'gulp-eslint'
Message:
Failed with 9 errors
[23:45:16] Finished 'styles' after 2.07 s
[23:45:16] Finished 'extras' after 609 ms
[23:45:16] Finished 'scripts' after 1.53 s
Add this to your .eslintrc file:
{
"globals": {
"angular": true
},
// ...
}
See the accepted answer for this question for more information:
ESLint's "no-undef" rule is calling my use of Underscore an undefined variable

How to compile a C extension as part of a ruby gem with mkmf on Mac OS X?

I am trying to create a gem that wraps libpuzzle, but cannot figure out this flat_namespace issue:
--- personal/sayzame ‹master* M⁇› » gem build sayzame.gemspec && gem install sayzame-0.0.1.gem
Successfully built RubyGem
Name: sayzame
Version: 0.0.1
File: sayzame-0.0.1.gem
Building native extensions. This could take a while...
Successfully installed sayzame-0.0.1
1 gem installed
--- personal/sayzame ‹master* M⁇› » pry -rsayzame -Ilib
[1] pry(main)> Sayzame.compare_images :a, :b
dyld: lazy symbol binding failed: Symbol not found: _puzzle_init_dvec
Referenced from: /usr/local/lib/libpuzzle.dylib
Expected in: flat namespace
dyld: Symbol not found: _puzzle_init_dvec
Referenced from: /usr/local/lib/libpuzzle.dylib
Expected in: flat namespace
[1] 56394 trace trap pry -rsayzame -Ilib
My full source code here: https://github.com/neezer/sayzame
I'm fairly sure the problem is in my ext/puzzle/extconf.rb file, in that I am not linking the library correctly. I have already posted on ffi/ffi's issue tracker about it and followed up on those two leads with no success.
I would really appreciate any and all help here; been banging my head against the wall for quite sometime on this.
Possibly related:
- https://groups.google.com/d/msg/picky-ruby/8kuG8FkATgU/89JLc6U7SrcJ

Resources