Lance Game Engine pong tutorial gets syntax error - lance

In the Lance Game Engine when I try to run their pong tutorial I type:
sudo yarn start
I get this error:
/var/nodes/lancegame/node_modules/lance-gg/src/ClientEngine.js:125
connect(options = {}) {
^
SyntaxError: Unexpected token =
Any ideas?

uninstalled lance-gg and ran npm install lance-gg#1.0.1 (older version) as instructed in the slack forum and now things work.

Related

Error showing as Extra argument 'eventDispatcher' in call while running react-native app

I am using expo-modules-core ("expo-modules-core": "^0.9.2").
I have tried npm install and pod install from my terminal and dependencies are successfully installed.
Then I tried to run the app with Xcode 13.0 with the iOS15.0 simulator but I am getting the following error and it becomes build failed.
node_modules/expo-modules-core/ios/Swift/Views/ComponentData.swift:22:84: Extra argument 'eventDispatcher' in call
The error showing in the following method inside the file (node_modules/expo-modules-core/ios/Swift/Views/ComponentData.swift).
public init(viewModule: ViewModuleWrapper, managerClass: ViewModuleWrapper.Type, bridge: RCTBridge) {
self.moduleHolder = viewModule.wrappedModuleHolder
super.init(managerClass: managerClass, bridge: bridge, eventDispatcher: bridge.eventDispatcher())
}
Could you help me how to resolve this issue?
We can fix this issue by downgrading "expo-modules-core": "~0.6.4",

Fail to install signed package with peer chaincode install command

I follow the instruction in the following link to install signed package.
https://hyperledger-fabric.readthedocs.io/en/v1.0.0-beta/cc-packaging-and-signing.html
But I got the following error when execute "peer chaincode install ccpack.out".
The error message is
Error: Error endorsing chaincode: rpc error: code = Unknown desc = proto: bad wiretype for field peer.ChaincodeSpec.Type: got wiretype 2, want 0
If I omit the -s flag in the create chaincode package step, the the raw ChaincodeDeploymentSpe can be successfully installed.
Can someone help me how to install the package with signature (i.e. with -s flag)?
There is a CR pending review https://gerrit.hyperledger.org/r/#/c/12727/ which should fix this issue.

syntax error near unexpected token `newline' (when install XAlign)

I want to install XAlign,there are some error.
qzslz-2:~ qzslz$ curl github.so/XAlign/build/install.sh | sh
error :
sh: line 1: syntax error near unexpected token newline'
sh: line 1:'
I don't know how to solve the problem,please help me!thanks!
The answer to your question is simple: the provided URL does not exist any more (404 not found). Maybe you used an outdated tutorial to install. You need to find an up-to-date source for XAlign.

Errors when trying to build iOS with cordova in Mavericks (10.9.1)

Days ago I built the application for Android, zero problems, but now, when I try to do the same for iOS (obviously not the same commands) I always receive an error.
I use the following command:
cordova platform add ios
And I get the following error:
Downloading cordova library for ios...
Download complete
Creating ios project...
Error: An error occured during creation of ios sub-project.
File "/Users/xxxxx/.cordova/lib/ios/cordova/3.3.0/bin/update_cordova_subproject", line 31
print __doc__
^
SyntaxError: invalid syntax
at /usr/local/lib/node_modules/cordova/src/platform.js:282:30
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
I tried also with:
phonegap build ios
But I get the same error and I don't know how to fix it. I've been looking on the Internet and I found some guy with the same problem but nobody could help him.
I run the commands with sudo, that isn't the problem.
I recently got the same error.
My problem was that I'm using Python3 by default. print in Python2 is a statement wherease in Python3 it's a function.
.cordova/lib/ios/cordova/3.3.0/bin/update_cordova_subproject has a shebang that calls /bin/python.
I had to replace #!/bin/python with #!/bin/python2.7 to use python2.7 on this script.
I have the exactly same problem with you. However, the way replace "#!/bin/python with #!/bin/python2.7" doesn't work for me.
Inspired by the explanation of Matthieu Riegler, I change print __doc__ to print(__doc__) in line 31 and print line to print(line) in line 97. Eventually, it works.

Installing Zend Framework 2 using pyrus

I'm getting an error when trying to download Zend Framework2 view pyrus. Here is the error:
# php pyrus.phar . install zf2/Zend_Framework#Standard
Using PEAR installation found at /usr/share/pear/pyrus
PHP Warning: Invalid argument supplied for foreach() in phar:///usr/share/pear/pyrus/pyrus.phar/Pyrus_Pharer-0.1.0/php/Pyrus/Package/Dependency/Set/PackageTree.php on line 91
PHP Notice: Undefined variable: extra in phar:///usr/share/pear/pyrus/pyrus.phar/Pyrus_Pharer-0.1.0/php/Pyrus/Package/Dependency/Set/PackageTree.php on line 277
Pyrus\Installer\Exception: Dependency validation failed for some packages to install, installation aborted
Pyrus\Package\Dependency\Set\Exception: No versions of </< or of its dependencies that can be installed because of
I installed pyrus in "usr/share/pear/pyrus/".
Any ideas why it's not working? I even tried to install another Zend library like this and I get the same error message.
$ php pyrus.phar . install zf2/Zend_Http
Listing channels I get this:
[root#apollo pyrus]# php pyrus.phar list-channels
Using PEAR installation found at /usr/share/pear/pyrus
Listing channels [/usr/share/pear/pyrus]:
__uri (__uri)
doc.php.net (phpdocs)
packages.zendframework.com (zf2)
pear.php.net (pear)
pear2.php.net (pear2)
pecl.php.net (pecl)
pyrus.net (pyrus)
Then when I try to get the remote list of packages from zf2 it gives me an error:
# php pyrus.phar remote-list zf2
Using PEAR installation found at /usr/share/pear/pyrus
Remote packages for channel zf2:
PHP Warning: current() expects parameter 1 to be array, string given in phar:///usr/share/pear/pyrus/pyrus.phar/Pyrus_Pharer-0.1.0/php/Pyrus/Channel/RemoteCategories.php on line 66
It seems there must be an error in the Zends repository, because if I list them for pear I get a full list of them using this:
# php pyrus.phar remote-list pear
Am I doing something wrong?
thank you
FWIW I get exactly the same as you and am assuming the Zend repo is messed up - I cannot begin to guess the timescale to expect it might cease to be messed up. I've switched to using a composer package installer instead and that seems more promising ;)
M

Resources