I am working on my project using Meteor and just started using material-ui beta version, which looks very cool and buttons are displayed with no problems at all.
"material-ui": "^1.0.0-beta.30" is the version I am using.
However, as soon as I add import Select from 'material-ui/Select';,
I get following error. Strange...
Any help will be appreacted. Thanks,
modules.js?hash=f1b8010e8d8e8514a27b2c8d6dcdb4faaaaf587f:11047 Uncaught SyntaxError: Invalid or unexpected token
es5-shim.js?hash=c070fc7aa1536cb75430d62c9dad8eaffe2b3716:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at es5-shim.js?hash=c070fc7aa1536cb75430d62c9dad8eaffe2b3716:17
at es5-shim.js?hash=c070fc7aa1536cb75430d62c9dad8eaffe2b3716:2792
(anonymous) # es5-shim.js?hash=c070fc7aa1536cb75430d62c9dad8eaffe2b3716:17
(anonymous) # es5-shim.js?hash=c070fc7aa1536cb75430d62c9dad8eaffe2b3716:2792
promise.js?hash=ad77cb6d1ba5237250773fdb8936f8900a09be21:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at promise.js?hash=ad77cb6d1ba5237250773fdb8936f8900a09be21:17
at promise.js?hash=ad77cb6d1ba5237250773fdb8936f8900a09be21:586
(anonymous) # promise.js?hash=ad77cb6d1ba5237250773fdb8936f8900a09be21:17
(anonymous) # promise.js?hash=ad77cb6d1ba5237250773fdb8936f8900a09be21:586
babel-runtime.js?hash=92770f08ed6cf73de1a4c0e25610b170df975dff:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at babel-runtime.js?hash=92770f08ed6cf73de1a4c0e25610b170df975dff:17
at babel-runtime.js?hash=92770f08ed6cf73de1a4c0e25610b170df975dff:176
(anonymous) # babel-runtime.js?hash=92770f08ed6cf73de1a4c0e25610b170df975dff:17
(anonymous) # babel-runtime.js?hash=92770f08ed6cf73de1a4c0e25610b170df975dff:176
ecmascript-runtime-client.js?hash=236033036aa3b0629009d2af14113e2413052567:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at ecmascript-runtime-client.js?hash=236033036aa3b0629009d2af14113e2413052567:17
at ecmascript-runtime-client.js?hash=236033036aa3b0629009d2af14113e2413052567:110
(anonymous) # ecmascript-runtime-client.js?hash=236033036aa3b0629009d2af14113e2413052567:17
(anonymous) # ecmascript-runtime-client.js?hash=236033036aa3b0629009d2af14113e2413052567:110
ejson.js?hash=3af8c8d41c63ca01c1c9698a677bc5ae971ff3b2:18 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at ejson.js?hash=3af8c8d41c63ca01c1c9698a677bc5ae971ff3b2:18
at ejson.js?hash=3af8c8d41c63ca01c1c9698a677bc5ae971ff3b2:861
(anonymous) # ejson.js?hash=3af8c8d41c63ca01c1c9698a677bc5ae971ff3b2:18
(anonymous) # ejson.js?hash=3af8c8d41c63ca01c1c9698a677bc5ae971ff3b2:861
diff-sequence.js?hash=15014d7b1e11c05111a386992e684ab1d3cc4158:18 Uncaught TypeError: Cannot read property 'EJSON' of undefined
at diff-sequence.js?hash=15014d7b1e11c05111a386992e684ab1d3cc4158:18
at diff-sequence.js?hash=15014d7b1e11c05111a386992e684ab1d3cc4158:297
(anonymous) # diff-sequence.js?hash=15014d7b1e11c05111a386992e684ab1d3cc4158:18
(anonymous) # diff-sequence.js?hash=15014d7b1e11c05111a386992e684ab1d3cc4158:297
geojson-utils.js?hash=e9d235fa7a29b6bcb50d7ad0b05751fa169fcc8b:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at geojson-utils.js?hash=e9d235fa7a29b6bcb50d7ad0b05751fa169fcc8b:17
at geojson-utils.js?hash=e9d235fa7a29b6bcb50d7ad0b05751fa169fcc8b:442
(anonymous) # geojson-utils.js?hash=e9d235fa7a29b6bcb50d7ad0b05751fa169fcc8b:17
(anonymous) # geojson-utils.js?hash=e9d235fa7a29b6bcb50d7ad0b05751fa169fcc8b:442
id-map.js?hash=c7aea8dfa2bf46ff2ae0aa6c6cf09e36abc61d07:18 Uncaught TypeError: Cannot read property 'EJSON' of undefined
at id-map.js?hash=c7aea8dfa2bf46ff2ae0aa6c6cf09e36abc61d07:18
at id-map.js?hash=c7aea8dfa2bf46ff2ae0aa6c6cf09e36abc61d07:123
(anonymous) # id-map.js?hash=c7aea8dfa2bf46ff2ae0aa6c6cf09e36abc61d07:18
(anonymous) # id-map.js?hash=c7aea8dfa2bf46ff2ae0aa6c6cf09e36abc61d07:123
random.js?hash=189ef930765405ef87a31a621407fc34447b8756:18 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at random.js?hash=189ef930765405ef87a31a621407fc34447b8756:18
at random.js?hash=189ef930765405ef87a31a621407fc34447b8756:371
(anonymous) # random.js?hash=189ef930765405ef87a31a621407fc34447b8756:18
(anonymous) # random.js?hash=189ef930765405ef87a31a621407fc34447b8756:371
mongo-id.js?hash=345d169d517353f8146292b4abd24061721f8b26:17 Uncaught TypeError: Cannot read property 'EJSON' of undefined
at mongo-id.js?hash=345d169d517353f8146292b4abd24061721f8b26:17
at mongo-id.js?hash=345d169d517353f8146292b4abd24061721f8b26:142
(anonymous) # mongo-id.js?hash=345d169d517353f8146292b4abd24061721f8b26:17
(anonymous) # mongo-id.js?hash=345d169d517353f8146292b4abd24061721f8b26:142
minimongo.js?hash=2b34314db9dbc6027d9d414887b75281c4515a19:17 Uncaught TypeError: Cannot read property 'DiffSequence' of undefined
at minimongo.js?hash=2b34314db9dbc6027d9d414887b75281c4515a19:17
at minimongo.js?hash=2b34314db9dbc6027d9d414887b75281c4515a19:5160
(anonymous) # minimongo.js?hash=2b34314db9dbc6027d9d414887b75281c4515a19:17
(anonymous) # minimongo.js?hash=2b34314db9dbc6027d9d414887b75281c4515a19:5160
check.js?hash=eab389b8683d2f0b47a9d511894c2082fc6155a9:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at check.js?hash=eab389b8683d2f0b47a9d511894c2082fc6155a9:17
at check.js?hash=eab389b8683d2f0b47a9d511894c2082fc6155a9:586
(anonymous) # check.js?hash=eab389b8683d2f0b47a9d511894c2082fc6155a9:17
(anonymous) # check.js?hash=eab389b8683d2f0b47a9d511894c2082fc6155a9:586
retry.js?hash=1e409617b538ff3e2b0238b15e45b3380c51a224:18 Uncaught TypeError: Cannot read property 'Random' of undefined
at retry.js?hash=1e409617b538ff3e2b0238b15e45b3380c51a224:18
at retry.js?hash=1e409617b538ff3e2b0238b15e45b3380c51a224:110
(anonymous) # retry.js?hash=1e409617b538ff3e2b0238b15e45b3380c51a224:18
(anonymous) # retry.js?hash=1e409617b538ff3e2b0238b15e45b3380c51a224:110
ddp-common.js?hash=83c6dba3051ec76b5c1cd85d39357f0f501add98:17 Uncaught TypeError: Cannot read property 'check' of undefined
at ddp-common.js?hash=83c6dba3051ec76b5c1cd85d39357f0f501add98:17
at ddp-common.js?hash=83c6dba3051ec76b5c1cd85d39357f0f501add98:493
(anonymous) # ddp-common.js?hash=83c6dba3051ec76b5c1cd85d39357f0f501add98:17
(anonymous) # ddp-common.js?hash=83c6dba3051ec76b5c1cd85d39357f0f501add98:493
reload.js?hash=02487cd11db41d01f7837ad146e4680a9e8d2e12:18 Uncaught TypeError: Cannot read property 'Symbol' of undefined
at reload.js?hash=02487cd11db41d01f7837ad146e4680a9e8d2e12:18
at reload.js?hash=02487cd11db41d01f7837ad146e4680a9e8d2e12:309
(anonymous) # reload.js?hash=02487cd11db41d01f7837ad146e4680a9e8d2e12:18
(anonymous) # reload.js?hash=02487cd11db41d01f7837ad146e4680a9e8d2e12:309
ddp-client.js?hash=df770fd9a6a02fd730939b97d266ea2b12938e95:17 Uncaught TypeError: Cannot read property 'check' of undefined
at ddp-client.js?hash=df770fd9a6a02fd730939b97d266ea2b12938e95:17
at ddp-client.js?hash=df770fd9a6a02fd730939b97d266ea2b12938e95:5146
(anonymous) # ddp-client.js?hash=df770fd9a6a02fd730939b97d266ea2b12938e95:17
(anonymous) # ddp-client.js?hash=df770fd9a6a02fd730939b97d266ea2b12938e95:5146
ddp.js?hash=25dc3f428447c81620c91c4245dbc6e4f7d32fb7:14 Uncaught TypeError: Cannot read property 'DDP' of undefined
at ddp.js?hash=25dc3f428447c81620c91c4245dbc6e4f7d32fb7:14
at ddp.js?hash=25dc3f428447c81620c91c4245dbc6e4f7d32fb7:27
(anonymous) # ddp.js?hash=25dc3f428447c81620c91c4245dbc6e4f7d32fb7:14
(anonymous) # ddp.js?hash=25dc3f428447c81620c91c4245dbc6e4f7d32fb7:27
allow-deny.js?hash=74d8af62e9bac0bd3c45b254bad987e996a88f6e:17 Uncaught TypeError: Cannot read property 'LocalCollection' of undefined
at allow-deny.js?hash=74d8af62e9bac0bd3c45b254bad987e996a88f6e:17
at allow-deny.js?hash=74d8af62e9bac0bd3c45b254bad987e996a88f6e:565
(anonymous) # allow-deny.js?hash=74d8af62e9bac0bd3c45b254bad987e996a88f6e:17
(anonymous) # allow-deny.js?hash=74d8af62e9bac0bd3c45b254bad987e996a88f6e:565
mongo.js?hash=337de4ed4979262aa9b84177742e90e72b1e1e1c:17 Uncaught TypeError: Cannot read property 'AllowDeny' of undefined
at mongo.js?hash=337de4ed4979262aa9b84177742e90e72b1e1e1c:17
at mongo.js?hash=337de4ed4979262aa9b84177742e90e72b1e1e1c:832
(anonymous) # mongo.js?hash=337de4ed4979262aa9b84177742e90e72b1e1e1c:17
(anonymous) # mongo.js?hash=337de4ed4979262aa9b84177742e90e72b1e1e1c:832
webapp.js?hash=266b2d6adf1a164ef9db120ea9c68d5658351399:18 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at webapp.js?hash=266b2d6adf1a164ef9db120ea9c68d5658351399:18
at webapp.js?hash=266b2d6adf1a164ef9db120ea9c68d5658351399:78
(anonymous) # webapp.js?hash=266b2d6adf1a164ef9db120ea9c68d5658351399:18
(anonymous) # webapp.js?hash=266b2d6adf1a164ef9db120ea9c68d5658351399:78
livedata.js?hash=7cf1831a60b48e304b054aee1ae0f7e38ff35d09:14 Uncaught TypeError: Cannot read property 'DDP' of undefined
at livedata.js?hash=7cf1831a60b48e304b054aee1ae0f7e38ff35d09:14
at livedata.js?hash=7cf1831a60b48e304b054aee1ae0f7e38ff35d09:31
(anonymous) # livedata.js?hash=7cf1831a60b48e304b054aee1ae0f7e38ff35d09:14
(anonymous) # livedata.js?hash=7cf1831a60b48e304b054aee1ae0f7e38ff35d09:31
dynamic-import.js?hash=d20b3dfd7dd31096c4c95f8751141e932cabc923:17 Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
at dynamic-import.js?hash=d20b3dfd7dd31096c4c95f8751141e932cabc923:17
at dynamic-import.js?hash=d20b3dfd7dd31096c4c95f8751141e932cabc923:444
(anonymous) # dynamic-import.js?hash=d20b3dfd7dd31096c4c95f8751141e932cabc923:17
(anonymous) # dynamic-import.js?hash=d20b3dfd7dd31096c4c95f8751141e932cabc923:444
autoupdate.js?hash=1fd9cf3472adaa6887170d88ab5ea1ddabf695fa:19 Uncaught TypeError: Cannot read property 'Retry' of undefined
at autoupdate.js?hash=1fd9cf3472adaa6887170d88ab5ea1ddabf695fa:19
at autoupdate.js?hash=1fd9cf3472adaa6887170d88ab5ea1ddabf695fa:206
(anonymous) # autoupdate.js?hash=1fd9cf3472adaa6887170d88ab5ea1ddabf695fa:19
(anonymous) # autoupdate.js?hash=1fd9cf3472adaa6887170d88ab5ea1ddabf695fa:206
global-imports.js?hash=4260dcecfc88908c20291abbaeafd4320be072ac:3 Uncaught TypeError: Cannot read property 'Mongo' of undefined
at global-imports.js?hash=4260dcecfc88908c20291abbaeafd4320be072ac:3
(anonymous) # global-imports.js?hash=4260dcecfc88908c20291abbaeafd4320be072ac:3
app.js?hash=eac09d9ff32c179f06c7dfe713dbe11902908405:1 Uncaught ReferenceError: meteorInstall is not defined
at app.js?hash=eac09d9ff32c179f06c7dfe713dbe11902908405:1
Related
I am working on a Flutter project.
I need to create a web app from the project.
The web app is launched at https://appcapenergy.com/web
Today I have made an update from the project, I have published the iOS app and the Android app to the stores, Apple App Store and Google Play.
Now I have build the web app, but it is not working.
Launching the web app locally or in the server it only shows a blank screen.
Here you have the browser inspection Console log:
Uncaught (in promise) TypeError: Failed to register a ServiceWorker for scope ('http://localhost:61121/') with script ('http://localhost:61121/firebase-messaging-sw.js'): A bad HTTP response code (404) was received when fetching the script.
main.dart.js:72 Uncaught TypeError: Cannot read properties of null (reading 'removeChild')
at HTMLDocument.<anonymous> (main.dart.js:72:22)
at client.js:24535:40
at _wrapJsFunctionForAsync_closure.$protected (client.js:3471:15)
at _wrapJsFunctionForAsync_closure.call$2 (client.js:11541:12)
at _awaitOnObject_closure.call$1 (client.js:11529:32)
at StaticClosure._rootRunUnary (client.js:3833:18)
at _CustomZone.runUnary$2$2 (client.js:12941:39)
at _Future__propagateToListeners_handleValueCallback.call$0 (client.js:11973:51)
at Object._Future__propagateToListeners (client.js:3613:93)
at _Future._completeWithValue$1 (client.js:11799:9)
at _AsyncAwaitCompleter.complete$1 (client.js:11512:14)
at Object._asyncReturn (client.js:3443:17)
at client.js:8734:24
at _wrapJsFunctionForAsync_closure.$protected (client.js:3471:15)
at _wrapJsFunctionForAsync_closure.call$2 (client.js:11541:12)
at _awaitOnObject_closure.call$1 (client.js:11529:32)
at StaticClosure._rootRunUnary (client.js:3833:18)
at _CustomZone.runUnary$2$2 (client.js:12941:39)
at _Future__propagateToListeners_handleValueCallback.call$0 (client.js:11973:51)
at Object._Future__propagateToListeners (client.js:3613:93)
at _Future._completeWithValue$1 (client.js:11799:9)
at _AsyncAwaitCompleter.complete$1 (client.js:11512:14)
at Object._asyncReturn (client.js:3443:17)
at client.js:25007:24
at _wrapJsFunctionForAsync_closure.$protected (client.js:3471:15)
at _wrapJsFunctionForAsync_closure.call$2 (client.js:11541:12)
at _awaitOnObject_closure.call$1 (client.js:11529:32)
at StaticClosure._rootRunUnary (client.js:3833:18)
at _CustomZone.runUnary$2$2 (client.js:12941:39)
at _Future__propagateToListeners_handleValueCallback.call$0 (client.js:11973:51)
at Object._Future__propagateToListeners (client.js:3613:93)
at _Future._completeWithValue$1 (client.js:11799:9)
at _AsyncAwaitCompleter.complete$1 (client.js:11512:14)
at Object._asyncReturn (client.js:3443:17)
at client.js:24984:24
at _wrapJsFunctionForAsync_closure.$protected (client.js:3471:15)
at _wrapJsFunctionForAsync_closure.call$2 (client.js:11541:12)
at _awaitOnObject_closure.call$1 (client.js:11529:32)
at StaticClosure._rootRunUnary (client.js:3833:18)
at _CustomZone.runUnary$2$2 (client.js:12941:39)
at _Future__propagateToListeners_handleValueCallback.call$0 (client.js:11973:51)
at Object._Future__propagateToListeners (client.js:3613:93)
at _Future._completeWithValue$1 (client.js:11799:9)
at _Future__asyncCompleteWithValue_closure.call$0 (client.js:11901:18)
at StaticClosure._rootRun (client.js:3818:16)
at _CustomZone.run$1$1 (client.js:12933:39)
at _CustomZone.runGuarded$1 (client.js:12876:14)
at _CustomZone_bindCallbackGuarded_closure.call$0 (client.js:13071:25)
at Object._microtaskLoop (client.js:3677:24)
at StaticClosure._startMicrotaskLoop (client.js:3683:11)
at _AsyncRun__initializeScheduleImmediate_internalCallback.call$1 (client.js:11417:9)
at invokeClosure (client.js:1277:26)
at MutationObserver.<anonymous> (client.js:1296:18)
This app is linked to the debug service: ws://127.0.0.1:61185/AiCArEXaM00=/ws
js_primitives.dart:30 Flutter Web Bootstrap: Programmatic
errors.dart:266 Uncaught (in promise) Error: Unsupported operation: Platform._operatingSystem
at Object.throw_ [as throw] (errors.dart:266:49)
at _Platform._operatingSystem (io_patch.dart:244:5)
at get operatingSystem [as operatingSystem] (platform_impl.dart:56:40)
at get _operatingSystem (platform.dart:64:45)
at desc.get [as _operatingSystem] (operations.dart:839:8)
at get isIOS (platform.dart:153:47)
at desc.get [as isIOS] (operations.dart:839:8)
at MethodChannelStripeFactory.create (method_channel_stripe.dart:479:33)
at get _instance (stripe_platform_interface.dart:12:72)
at desc.get [as _instance] (operations.dart:839:8)
at get instance [as instance] (stripe_platform_interface.dart:17:41)
at get _platform [as _platform] (stripe.dart:535:35)
at stripe.Stripe.__.markNeedsSettings (stripe.dart:542:20)
at set publishableKey [as publishableKey] (stripe.dart:24:14)
at main$ (main.dart:38:10)
at main$.next (<anonymous>)
at runBody (async_patch.dart:84:54)
at Object._async [as async] (async_patch.dart:123:5)
at main$ (main.dart:34:5)
at web_entrypoint.dart:24:31
at Object._checkAndCall (operations.dart:334:14)
at Object.dcall (operations.dart:339:39)
at initialization.dart:77:15
at Generator.next (<anonymous>)
at async_patch.dart:45:50
at _RootZone.runUnary (zone.dart:1653:54)
at _FutureListener.thenAwait.handleValue (future_impl.dart:147:18)
at handleValueCallback (future_impl.dart:766:44)
at _Future._propagateToListeners (future_impl.dart:795:13)
at [_completeWithValue] (future_impl.dart:566:5)
at async._AsyncCallbackEntry.new.callback (future_impl.dart:639:7)
at Object._microtaskLoop (schedule_microtask.dart:40:11)
at _startMicrotaskLoop (schedule_microtask.dart:49:5)
at async_patch.dart:166:15
throw_ # errors.dart:266
_operatingSystem # io_patch.dart:244
get operatingSystem # platform_impl.dart:56
get _operatingSystem # platform.dart:64
desc.get # operations.dart:839
get isIOS # platform.dart:153
desc.get # operations.dart:839
create # method_channel_stripe.dart:479
get _instance # stripe_platform_interface.dart:12
desc.get # operations.dart:839
get instance # stripe_platform_interface.dart:17
get _platform # stripe.dart:535
markNeedsSettings # stripe.dart:542
set publishableKey # stripe.dart:24
main$ # main.dart:38
runBody # async_patch.dart:84
_async # async_patch.dart:123
main$ # main.dart:34
(anonymous) # web_entrypoint.dart:24
_checkAndCall # operations.dart:334
dcall # operations.dart:339
(anonymous) # initialization.dart:77
(anonymous) # async_patch.dart:45
runUnary # zone.dart:1653
handleValue # future_impl.dart:147
handleValueCallback # future_impl.dart:766
_propagateToListeners # future_impl.dart:795
[_completeWithValue] # future_impl.dart:566
(anonymous) # future_impl.dart:639
_microtaskLoop # schedule_microtask.dart:40
_startMicrotaskLoop # schedule_microtask.dart:49
(anonymous) # async_patch.dart:166
Promise.then (async)
_scheduleImmediateWithPromise # async_patch.dart:164
_scheduleImmediate # async_patch.dart:136
_scheduleAsyncCallback # schedule_microtask.dart:69
_rootScheduleMicrotask # zone.dart:1458
scheduleMicrotask # zone.dart:1673
[_asyncCompleteWithValue] # future_impl.dart:638
[_asyncComplete] # future_impl.dart:598
runBody # async_patch.dart:108
_async # async_patch.dart:123
initializeEngineUi # initialization.dart:224
(anonymous) # initialization.dart:75
runBody # async_patch.dart:84
_async # async_patch.dart:123
(anonymous) # initialization.dart:71
_checkAndCall # operations.dart:334
callMethod # operations.dart:398
dsend # operations.dart:402
(anonymous) # app_bootstrap.dart:72
runBody # async_patch.dart:84
_async # async_patch.dart:123
(anonymous) # app_bootstrap.dart:70
_checkAndCall # operations.dart:334
dcall # operations.dart:339
ret # js_patch.dart:413
(anonymous) # app_bootstrap.dart:68
_checkAndCall # operations.dart:334
dcall # operations.dart:339
ret # js_patch.dart:413
(anonymous) # web:53
I need your help to try to solve the issue
Please do this!
I run this in the console of my navigator (Chrome), and no error message anymore :
navigator.serviceWorker.getRegistrations().then(function(registrations) { for(let registration of registrations) { registration.unregister() } })
and check this link
https://www.fluttercampus.com/guide/163/how-to-fix-blank-white-page-from-hosted-flutter-web-app/#:~:text=html%20with%20code%20editor%2C%20you,attribute%20to%20solve%20this%20problem
Fatal error: Uncaught Error: Undefined constant "mu" in E:\xampp\htdocs[[myphpframework]]\mu-clean\examples\hello1.php:3 Stack trace: #0 {main} thrown in E:\xampp\htdocs[[myphpframework]]\mu-clean\examples\hello1.php on line 3
the framework code:
<?php class µ{function __call($m,$a){$c=&$this->{$m.$a[0]};$c=$a[1]??(is_callable($c)?$c($this):$c);return isset($a[1])?
$this:$c;}function run(){foreach($this as$x=>$f)preg_match("#$x#i","$_SERVER[REQUEST_METHOD]$_SERVER[REQUEST_URI]",$p)&&
$f($this,$p);}function view($f,$d=[]){ob_start();extract($d);require"$this->cfgviews/$f.php";return ob_get_clean();}}#JL
the testing page code:
<?php
require(mu.php);
(new µ)
->get('/hello', function () {
echo "<p>Hello, world!</p>";
})
->run();
// Thank you, any assistance is highly appreciated.
In line 3 write:
require 'mu.php';
See docs ...
I am using "#material-ui/core": "^3.9.3" with "#material-ui/pickers": "^3.0.0-beta.1"
When I import anything from #material-ui/pickers I get:
Uncaught TypeError: Object(...) is not a function
at Module../node_modules/#material-ui/pickers/dist/material-ui-pickers.esm.js (material-ui-pickers.esm.js:25)
at __webpack_require__ (bootstrap:781)
at fn (bootstrap:149)
at Module../src/views/Event/Create.js (User.js:18)
at __webpack_require__ (bootstrap:781)
at fn (bootstrap:149)
at Module../src/Routes.js (Routes.js:1)
at __webpack_require__ (bootstrap:781)
at fn (bootstrap:149)
at Module../src/layouts/Admin.jsx (index.js:73)
at __webpack_require__ (bootstrap:781)
at fn (bootstrap:149)
at Module../src/index.js (index.css?02e3:45)
at __webpack_require__ (bootstrap:781)
at fn (bootstrap:149)
at Object.0 (Notifications.jsx:300)
at __webpack_require__ (bootstrap:781)
at checkDeferredModules (bootstrap:45)
at Array.webpackJsonpCallback [as push] (bootstrap:32)
at main.chunk.js:1
Make sure that #material-ui/pickers is the new npm package, that serving next version. And it's required #material-ui/core at least v4.0.0-beta.0
For the old v3 version of material-ui, use material-ui-pickers package and version v2.2.4
I am trying to install the Google AIY Vision Bonnet on Raspian Stretch 4.14.79-v7+, as explained in https://github.com/google/aiyprojects-raspbian/blob/aiyprojects/HACKING.md, but the build of aiy-vision-dkms fails with lots of errors.
I did all the steps while in a Python virtual environment, so defined:
# virtualenv and virtualenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
I execute these commands:
echo "deb https://dl.google.com/aiyprojects/deb stable main" | sudo tee /etc/apt/sources.list.d/aiyprojects.list
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo reboot
sudo apt-get install dkms
sudo apt install raspberrypi-kernel-headers
sudo reboot
sudo apt-get install -y aiy-vision-dkms
At this point the build fails:
pi#raspberrypi:/var/lib/dkms $ sudo apt-get install -y aiy-vision-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
aiy-dkms aiy-vision-firmware
The following NEW packages will be installed:
aiy-dkms aiy-vision-dkms aiy-vision-firmware
0 upgraded, 3 newly installed, 0 to remove and 9 not upgraded.
Need to get 0 B/2,488 kB of archives.
After this operation, 6,983 kB of additional disk space will be used.
Selecting previously unselected package aiy-dkms.
(Reading database ... 172760 files and directories currently installed.)
Preparing to unpack .../aiy-dkms_1.1-2_all.deb ...
Unpacking aiy-dkms (1.1-2) ...
Selecting previously unselected package aiy-vision-firmware.
Preparing to unpack .../aiy-vision-firmware_1.2-0_all.deb ...
Unpacking aiy-vision-firmware (1.2-0) ...
Selecting previously unselected package aiy-vision-dkms.
Preparing to unpack .../aiy-vision-dkms_1.1-1_all.deb ...
Unpacking aiy-vision-dkms (1.1-1) ...
Setting up aiy-dkms (1.1-2) ...
Loading new aiy-1.1 DKMS files...
It is likely that 4.14.79-v7+ belongs to a chroot's host
Building for 3.6-trunk-rpi, 4.14.79+ and 4.14.79-v7+
Building initial module for 3.6-trunk-rpi
Error! Bad return status for module build on kernel: 3.6-trunk-rpi (armv7l)
Consult /var/lib/dkms/aiy/1.1/build/make.log for more information.
Setting up aiy-vision-firmware (1.2-0) ...
Setting up aiy-vision-dkms (1.1-1) ...
Loading new aiy-vision-1.1 DKMS files...
It is likely that 4.14.79-v7+ belongs to a chroot's host
Building for 3.6-trunk-rpi, 4.14.79+ and 4.14.79-v7+
Building initial module for 3.6-trunk-rpi
Error! Bad return status for module build on kernel: 3.6-trunk-rpi (armv7l)
Consult /var/lib/dkms/aiy-vision/1.1/build/make.log for more information.
Below is /var/lib/dkms/aiy/1.1/build/make.log :
DKMS make.log for aiy-1.1 for kernel 3.6-trunk-rpi (armv7l)
Wed 30 Jan 22:03:20 CET 2019
make: Entering directory '/usr/src/linux-headers-3.6-trunk-rpi'
LD /var/lib/dkms/aiy/1.1/build/aiy/mfd/built-in.o
LD /var/lib/dkms/aiy/1.1/build/aiy/gpio/built-in.o
LD /var/lib/dkms/aiy/1.1/build/aiy/pwm/built-in.o
CC [M] /var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.o
CC [M] /var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.o
LD /var/lib/dkms/aiy/1.1/build/aiy/iio/adc/built-in.o
CC [M] /var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.o
CC [M] /var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.o
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:157:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:157:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:158:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:158:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:159:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:159:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:160:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:160:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:163:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:163:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:164:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:164:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:165:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:165:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:166:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:166:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c: In function ‘aiy_adc_probe’:
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:176:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:176:10: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.o' failed
make[6]: *** [/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/iio/adc' failed
make[5]: *** [/var/lib/dkms/aiy/1.1/build/aiy/iio/adc] Error 2
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/iio' failed
make[4]: *** [/var/lib/dkms/aiy/1.1/build/aiy/iio] Error 2
make[4]: *** Waiting for unfinished jobs....
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:27:18: error: field ‘chip’ has incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘to_aiy’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:58:28: warning: initialization from incompatible pointer type [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:58:28: warning: (near initialization for ‘aiy_pwm’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_calculate_8bit_settings’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:80:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘to_aiy’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:46:9: error: implicit declaration of function ‘gpiochip_get_data’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:46:27: warning: initialization makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:89:16: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_request’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:55:2: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:58:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_free’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:67:2: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:71:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:75:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c: In function ‘aiy_io_mcu_write_direct’:
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:86:2: error: implicit declaration of function ‘__i2c_transfer’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_direction_input’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:83:2: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c: In function ‘aiy_io_mcu_wait_alive’:
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:98:3: error: implicit declaration of function ‘msleep’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:87:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_get’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:100:2: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:104:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_set_impl’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:121:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_set’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:129:2: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:99:18: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_direction_output’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:139:2: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:144:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c: In function ‘aiy_io_update_firmware’:
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:174:2: error: implicit declaration of function ‘request_firmware_direct’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_probe’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:163:6: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:175:2: error: implicit declaration of function ‘devm_gpiochip_add_data’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:106:4: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c: At top level:
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:304:34: error: array type has incomplete element type
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:305:2: error: field name not in record or union initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:305:2: error: (near initialization for ‘aiy_io_i2c_volatile_ranges’)
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:306:3: error: field name not in record or union initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:306:3: error: (near initialization for ‘aiy_io_i2c_volatile_ranges’)
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:307:2: error: field name not in record or union initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:307:2: error: (near initialization for ‘aiy_io_i2c_volatile_ranges’)
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:308:3: error: field name not in record or union initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:308:3: error: (near initialization for ‘aiy_io_i2c_volatile_ranges’)
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:311:21: error: variable ‘aiy_io_i2c_volatile_table’ has initializer but incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:312:2: error: unknown field ‘yes_ranges’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:312:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:312:2: warning: (near initialization for ‘aiy_io_i2c_volatile_table’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:313:2: error: unknown field ‘n_yes_ranges’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:313:18: error: negative width in bit-field ‘<anonymous>’
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:313:18: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:313:18: warning: (near initialization for ‘aiy_io_i2c_volatile_table’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:316:21: error: variable ‘aiy_io_i2c_regmap_config’ has initializer but incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:317:2: error: unknown field ‘reg_bits’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:317:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:317:2: warning: (near initialization for ‘aiy_io_i2c_regmap_config’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:318:2: error: unknown field ‘val_bits’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:318:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:318:2: warning: (near initialization for ‘aiy_io_i2c_regmap_config’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:319:2: error: unknown field ‘max_register’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:319:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:319:2: warning: (near initialization for ‘aiy_io_i2c_regmap_config’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:320:2: error: unknown field ‘volatile_table’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:320:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:320:2: warning: (near initialization for ‘aiy_io_i2c_regmap_config’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:321:2: error: unknown field ‘cache_type’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:321:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:321:2: warning: (near initialization for ‘aiy_io_i2c_regmap_config’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:322:2: error: unknown field ‘can_multi_write’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:322:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:322:2: warning: (near initialization for ‘aiy_io_i2c_regmap_config’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c: In function ‘aiy_io_i2c_probe’:
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:337:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:337:14: warning: assignment makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:372:29: error: ‘PLATFORM_DEVID_NONE’ undeclared (first use in this function)
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:372:29: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:373:10: warning: passing argument 3 of ‘mfd_add_devices’ discards ‘const’ qualifier from pointer target type [enabled by default]
/usr/src/linux-headers-3.6-trunk-common/include/linux/mfd/core.h:100:12: note: expected ‘struct mfd_cell *’ but argument is of type ‘const struct mfd_cell *’
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c: At top level:
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:421:1: warning: data definition has no type or storage class [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:421:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:421:1: warning: parameter names (without types) in function declaration [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_calculate_16bit_settings’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:134:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_request’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:141:32: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:144:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:144:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:148:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:150:7: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_free’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:157:32: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:160:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:160:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:165:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:168:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_write_setting’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:184:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:192:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:198:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_8bit_config’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:212:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:219:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:223:39: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:226:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_16bit_config’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:241:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:246:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:250:39: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:252:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:304:34: warning: ‘aiy_io_i2c_volatile_ranges’ defined but not used [-Wunused-variable]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:411:26: warning: ‘aiy_io_i2c_driver’ defined but not used [-Wunused-variable]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_config’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:263:36: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:267:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:270:9: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:288:3: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:292:9: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_enable’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:305:36: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:310:9: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:311:3: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:314:3: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:320:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_disable’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:328:36: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:331:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:331:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:337:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:337:54: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: At top level:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:341:21: error: variable ‘aiy_pwm_ops’ has initializer but incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:342:2: error: unknown field ‘request’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:342:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:342:2: warning: (near initialization for ‘aiy_pwm_ops’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:343:2: error: unknown field ‘free’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:343:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:343:2: warning: (near initialization for ‘aiy_pwm_ops’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:344:2: error: unknown field ‘config’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:344:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:344:2: warning: (near initialization for ‘aiy_pwm_ops’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:345:2: error: unknown field ‘enable’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:345:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:345:2: warning: (near initialization for ‘aiy_pwm_ops’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:346:2: error: unknown field ‘disable’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:346:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:346:2: warning: (near initialization for ‘aiy_pwm_ops’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:347:2: error: unknown field ‘owner’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:347:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:347:2: warning: (near initialization for ‘aiy_pwm_ops’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_probe’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:366:2: error: implicit declaration of function ‘pwmchip_add’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_remove’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:380:2: error: implicit declaration of function ‘pwmchip_remove’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.o' failed
make[5]: *** [/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/gpio' failed
make[4]: *** [/var/lib/dkms/aiy/1.1/build/aiy/gpio] Error 2
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.o' failed
make[5]: *** [/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/mfd' failed
make[4]: *** [/var/lib/dkms/aiy/1.1/build/aiy/mfd] Error 2
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.o' failed
make[5]: *** [/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/pwm' failed
make[4]: *** [/var/lib/dkms/aiy/1.1/build/aiy/pwm] Error 2
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy' failed
make[3]: *** [/var/lib/dkms/aiy/1.1/build/aiy] Error 2
/usr/src/linux-headers-3.6-trunk-common/Makefile:1208: recipe for target '_module_/var/lib/dkms/aiy/1.1/build' failed
make[2]: *** [_module_/var/lib/dkms/aiy/1.1/build] Error 2
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/usr/src/linux-headers-3.6-trunk-rpi'
Below is /var/lib/dkms/aiy-vision/1.1/build/make.log :
DKMS make.log for aiy-vision-1.1 for kernel 3.6-trunk-rpi (armv7l)
Wed 30 Jan 22:03:35 CET 2019
make: Entering directory '/usr/src/linux-headers-3.6-trunk-rpi'
LD /var/lib/dkms/aiy-vision/1.1/build/built-in.o
CC [M] /var/lib/dkms/aiy-vision/1.1/build/aiy-vision.o
/var/lib/dkms/aiy-vision/1.1/build/aiy-vision.c:32:33: fatal error: linux/gpio/consumer.h: No such file or directory
compilation terminated.
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/aiy-vision/1.1/build/aiy-vision.o' failed
make[3]: *** [/var/lib/dkms/aiy-vision/1.1/build/aiy-vision.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/Makefile:1208: recipe for target '_module_/var/lib/dkms/aiy-vision/1.1/build' failed
make[2]: *** [_module_/var/lib/dkms/aiy-vision/1.1/build] Error 2
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/usr/src/linux-headers-3.6-trunk-rpi'
Do you have an idea what could I do?
Thanks
Sincerely
Under /lib/module I noticed there was an old 3.6 kernel called "3.6.trunk-rpi". The aiy installation was compiling also for this kernel. Suspecting that this would not work because of the too old kernel, I removed it with sudo apt-get --purge remove linux-headers-3.6-trunk-common.
Then the aiy-vision-dkms build was succesfull.
I am trying to automate and rum a simple register form but i am getting error saying "Failed: Fn is not a function". Below is my code
describe('Locator testing by model', function(){
it('automate user register form', function(){
browser.get('http://www.way2automation.com/angularjs-protractor/registeration/#/login');
element(by.model('Auth.user.name')).sendKeys('angular');
element(by.model('Auth.user.password')).sendKeys('password');
element(by.model('model[options.key]')).sendKeys('zafaque');
element(by.buttonText('Login')).click();
browser.wait(3000);
});
});
below is the error detail
1) Locator testing by model automate user register form
Message:
Failed: fn is not a function
Stack:
TypeError: fn is not a function
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver.js:716:14
at TaskQueue.execute_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2913:14)
at TaskQueue.executeNext_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2896:21)
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2820:25
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:639:7
at process._tickCallback (node.js:369:9)
From: Task: <anonymous>
at pollCondition (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2359:16)
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2355:9
at new ManagedPromise (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:1082:7)
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2354:14
at TaskQueue.execute_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2913:14)
at TaskQueue.executeNext_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2896:21)
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2775:27
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:639:7
at process._tickCallback (node.js:369:9)
From: Task: <anonymous wait>
at ControlFlow.wait (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2352:17)
at Driver.wait (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver.js:712:29)
at ProtractorBrowser.to.(anonymous function) [as wait] (/usr/local/lib/node_modules/protractor/built/browser.js:60:29)
at Object.<anonymous> (/Users/zafaque/WebstormProjects/autotation/udemyProject/loginTest.js:12:17)
at /usr/local/lib/node_modules/protractor/node_modules/jasminewd2/index.js:94:23
at new ManagedPromise (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:1082:7)
at controlFlowExecute (/usr/local/lib/node_modules/protractor/node_modules/jasminewd2/index.js:80:18)
at TaskQueue.execute_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2913:14)
at TaskQueue.executeNext_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2896:21)
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2820:25
From: Task: Run it("automate user register form") in control flow
at Object.<anonymous> (/usr/local/lib/node_modules/protractor/node_modules/jasminewd2/index.js:79:14)
From asynchronous test:
Error
at Suite.<anonymous> (/Users/zafaque/WebstormProjects/autotation/udemyProject/loginTest.js:6:5)
at Object.<anonymous> (/Users/zafaque/WebstormProjects/autotation/udemyProject/loginTest.js:4:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
You are using browser.wait() incorrectly. Refer the official documentation for correct usage here
browser.wait() accepts params in the below order
first argument is a condition which can be a function or a
webdriver.promise.Promise or a Expected Condition Second Argument is
the timeout
But you are passing timeout as the first argument. Incase you just wait a conditionless wait - Just use browser.sleep(3000)