I want to add a line break when passing a string value to props I have tried "Unsere \nLeidenschaft" and {"Unsere \nLeidenschaft" } both but it is not working it break the line but it shows \n also with the text. Here is my code: I want to break the text of heading. <BgImageComponent DashSize={"35%"} Heading="Unsere Leidenschaft" SubHeading={"Das Team von Agento Aurum ist..."} />I have found the solution you have to seprate the strings and then put it should be like this {["Unsere", , "Leidenschaft"]}! Answered By - Alex This Answer collected from stackoverflow and tested by AngularFix community admins, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0
Muss ich hier noch etwas unternehmen oder ist das so OK? Gruß Hans-Jürgen Nachtrag:
Hallo! Habe heute versucht auf den js-controller 4.0.x upzugraden - leider bin ich gescheitert ... Habe mich durch die infos im thread garbeitet und auch einiges ausprobiert, jedoch haben alle Lösungen nicht funktioniert bzw. immer wieder zu demselben Problem / Error geführt: pi@PI4IOBroker:/opt/iobroker $ iobroker upgrade self Update js-controller from @3.1.6 to @4.0.21 NPM version: 7.24.2 npm install --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call) Objects 127.0.0.1:56176 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets"] States 127.0.0.1:43884 Error from InMemDB: Error: GET-UNSUPPORTED for namespace meta.: Data=["meta.states.protocolVersion"] Objects 127.0.0.1:56176 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.protocolVersion"] Objects 127.0.0.1:56176 Error from InMemDB: Error: scan NOT SUPPORTED npm ERR! code 1 npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller npm ERR! command failed npm ERR! command sh -c node iobroker.js setup first npm ERR! /opt/iobroker/node_modules/standard-as-callback/built/index.js:6 npm ERR! throw e; npm ERR! ^ npm ERR! npm ERR! ReplyError: Error scan NOT SUPPORTED npm ERR! at parseError (/opt/iobroker/node_modules/redis-parser/lib/parser.js:179:12) npm ERR! at parseType (/opt/iobroker/node_modules/redis-parser/lib/parser.js:302:14) npm ERR! Emitted 'error' event on ScanStream instance at: npm ERR! at /opt/iobroker/node_modules/ioredis/built/ScanStream.js:38:22 npm ERR! at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:12:23) npm ERR! at /opt/iobroker/node_modules/standard-as-callback/built/index.js:33:51 npm ERR! at processTicksAndRejections (internal/process/task_queues.js:95:5) { npm ERR! command: { npm ERR! name: 'scan', npm ERR! args: [ '0', 'MATCH', 'cfg.o.system.host.*', 'COUNT', '250' ] npm ERR! } npm ERR! } npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-04-01T21_26_30_838Z-debug.log Starting node restart.jsDie zuletzt probierte Prozedur war folgende: iobroker update iobroker stop iobroker upgrade iobroker upgrade self iobroker fix iobroker startHat jemand eine idee woran es liegen könnte? Leider kann ich mit den Error Log auf keinen grünen Zweig kommen Der Log beinhaltet folgendes: 0 verbose cli [ 0 verbose cli '/usr/local/bin/node', 0 verbose cli '/usr/local/bin/npm', 0 verbose cli 'install', 0 verbose cli '', 0 verbose cli '--loglevel', 0 verbose cli 'error', 0 verbose cli '--unsafe-perm', 0 verbose cli '--prefix', 0 verbose cli '/opt/iobroker' 0 verbose cli ] 1 info using 2 info using 3 timing npm:load:whichnode Completed in 1ms 4 timing config:load:defaults Completed in 5ms 5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 4ms 6 timing config:load:builtin Completed in 4ms 7 timing config:load:cli Completed in 8ms 8 timing config:load:env Completed in 0ms 9 timing config:load:file:/opt/iobroker/.npmrc Completed in 2ms 10 timing config:load:project Completed in 2ms 11 timing config:load:file:/home/iobroker/.npmrc Completed in 1ms 12 timing config:load:user Completed in 1ms 13 timing config:load:file:/opt/iobroker/etc/npmrc Completed in 0ms 14 timing config:load:global Completed in 0ms 15 timing config:load:validate Completed in 1ms 16 timing config:load:credentials Completed in 3ms 17 timing config:load:setEnvs Completed in 3ms 18 timing config:load Completed in 28ms 19 timing npm:load:configload Completed in 28ms 20 timing npm:load:setTitle Completed in 0ms 21 timing npm:load:setupLog Completed in 2ms 22 timing config:load:flatten Completed in 9ms 23 timing npm:load:cleanupLog Completed in 6ms 24 timing npm:load:configScope Completed in 0ms 25 timing npm:load:projectScope Completed in 1ms 26 timing npm:load Completed in 47ms 27 timing arborist:ctor Completed in 2ms 28 verbose shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules/iobroker.zwave2 29 timing idealTree:init Completed in 6038ms 30 timing idealTree:userRequests Completed in 24ms 31 silly idealTree buildDeps 32 silly fetch manifest 33 http fetch GET 200 https://registry.npmjs.org/iobroker.js-controller 7421ms (cache revalidated) 34 silly placeDep ROOT REPLACE for: want: 4.0.21 35 silly fetch manifest @alcalzone/esbuild-register@^2.5.1-1 36 silly fetch manifest @iobroker/ 37 silly fetch manifest @iobroker/ 38 silly fetch manifest @iobroker/ 39 silly fetch manifest @iobroker/ 40 silly fetch manifest @iobroker/ 41 silly fetch manifest @iobroker/ 42 silly fetch manifest @iobroker/ 43 silly fetch manifest @iobroker/ 44 silly fetch manifest @iobroker/ 45 silly fetch manifest @iobroker/ 46 silly fetch manifest @iobroker/plugin-base@~1.2.1 47 silly fetch manifest @iobroker/plugin-sentry@~1.2.0 48 silly fetch manifest axios@^0.24.0Vielen Dank für eure Hilfe. LG Lukas
@lacknelu denke du müsstest erst mal dein node und npm richtig installieren
@lacknelu Ja, nodeJS und das Drumherum ist komplett schief. Das zuerst in Ordnung bringen. Siehe in meiner Signatur.
@lacknelu naja, du springst von der 3.1 über 3.2 und 3.3 zur 4.0 ... das ist ein "weiterer Weg" ... lies mal oben im ersten Post ... Mach einen "npm" install des 4er controller wie oben angegeben dann geht es auch PS: Hättest auch einfach mal ein paar Posts nach oben scrollen können, da gabs schon einen zweiten User mit genau dem gleichen problem
Mein Update ist absolut problemlos gelaufen, wieder einmal prima Arbeit von den Verantwortlichen. DANKE dafür. Das ist erst einmal nicht tragisch, da ich eigentlich nur noch die influxdb.1 benutze. Die influxdb.0 zeigt auf eine externe db die es seit kurzem nicht mehr gibt und nicht mehr genutzt wird. Bisher hatte ich dazu keine Fehlermeldungen bekommen, erst nach dem Update. Meine Frage ist nun wie ich herausbekommen kann ob ich doch noch Objekte mit der alten influxdb.0 verknüpft habe. Würde ich Fehlermeldungen bekommen wenn dem so wäre? Dann lege ich mich dazu gleich wieder ganz beruhigt hin.
@aiouh sagte in js-controller 4.0.x jetzt für alle User im STABLE!:
Wie meinst Du das?
@aiouh said in js-controller 4.0.x jetzt für alle User im STABLE!:
Einfach die Objekte öffnen und dann rechts oben bei Einstellungen "influxdb.0" auswählen. Dann werden nur mehr Objekte angezeigt, die nach influxdb.0 speichern.
@apollon77, @Thomas Braun, @crunchip Danke für eure Unterstützung. Bin noch einmal alles durchgegangen und habe Node richtig gestellt. Zwischenzeitlich ist dann nichts mehr gegangen weil ich einfach leider viel zu wenig über die Thematik verstehe IOBroker läuft mittlerweile wieder und ich upgrade mich sukzessive in Richtung 4.X Danke & LG |