Rails 7 import map couldn't find any packages - ruby-on-rails

Hello I am new here in the rails world, the things is that I am playing with importmap, I am trying to install monako editor this way
./bin/importmap pin monaco-editor
But I got Couldn't find any packages in ["monaco-editor"] on jspm
I also tried this way but got error too
./bin/importmap pin monaco-editor --from unpkg
Any ideas of how to import monaco-editor in my project?

Related

No Module Named PyQt5 and Pyside2 Error While Trying to open rqt

I've been trying to use the ROS(Robot Operating System) using this page:
Tutorial page
In the link it makes you use turtle sim it seemed to work fine with me without any errors.
In the 4th step(install rqt),i get this error:
`INPUT: RQT
OUTPUT: ImportError for 'pyqt': No module named 'PyQt5'
ModuleNotFoundError: No module named 'PyQt5'
ModuleNotFoundError: No module named 'PySide2'`
There was more lines of error but it seemed irrelevant to me because it only says file names.
I'm using python version 3.8.3 and qt version 5.12.12.
I downloaded the qt manually in their website.Didn't use:
pip install PyQt5
And i don't exactly remember now but someone said something about local files of pyhton but i had none of them:
screenshot of C:\Users\Boran\AppData\Local\Programs
It supposed to be Pyhton files in here.
Also there is no problem about python it works fine and i used talker and listener(pyhton coded applications of ROS.) and they worked fine.
I solved the problem by installing graphviz.It appears that to run rqt i had to install graphviz.

upgrade #angular/material get SyntaxError: Unexpected token '<'

Currently I am working with a legacy angular mixed asp.net core 2.2 web project. It is not a pure angular template structure, the previous programmer modify the project structure so let angular component web page work together with asp.net cshtml page,MVC C# controller. So he can reused his previously asp.net C# code(get data from backend jbase database) from another old project. which is not recommend way to do angular. But that is the way he did that.
We currently need to upgrade this project's angular version from 7.2.1 to latest version. as we need to add new feature in this project.
But we got some issue.
As the project structure changed ,not pure angular
we can not just follow google angular upgrade guide https://update.angular.io/?v=7.2-8.0 to upgrade
For example from version 7.21. to version 8
if I do this command ng update #angular/cli#8 #angular/core#8
Below highlight part still stuck in version 7.2.1 , will not updated automatically in package.json
please see picture 1
https://drive.google.com/file/d/1E7LDdwv724mP9WVBrfJVKLO7LAW1C4EW/view?usp=sharing
I have to manually to do below commands to update each individual angular library one by one
npm install --save #angular/animations#8
npm install --save #angular/cdk#8
npm install --save #angular/common#8
npm install --save #angular/compiler#8
npm install --save #angular/core#8
npm install --save #angular/forms#8
npm install --save #angular/material#8
npm install --save #angular/platform-browser#8
npm install --save #angular/platform-browser-dynamic#8
npm install --save #angular/router#8
After I did above commands, please see below image, the highlighted part updated to version 8
Please see picture 2
https://drive.google.com/file/d/1tN0NVqky0rvuXR45blNmjpBwSeVHnyzJ/view?usp=sharing
I also noticed when update #angular/marterial fromversion 7.2 to version 8.0
Writing way of #angular/marterial import part need to change.
Instead of importing from #angular/material, you should import deeply from the specific component. E.g. #angular/material/button. ng update will do this automatically for you.
for example.
when in #angular/material 7.2.1, in the module.ts we import like below
import { MatDialogModule,MatIconModule,MatNativeDateModule,MatProgressSpinnerModule,MatTooltipModule,
MatStepperModule} from '#angular/material';
please see picture 3
https://drive.google.com/file/d/1Nb1S7QzH0B0qcnx-OaOnj9U4jQUB8lRw/view?usp=sharing
after #angular/material version 8, we need to write as below
import {MatDialogModule} from '#angular/material/dialog';
import {MatIconModule} from '#angular/material/icon';
import { MatNativeDateModule } from '#angular/material/core';
import {MatProgressSpinnerModule} from '#angular/material/progress-spinner';
import {MatTooltipModule} from '#angular/material/tooltip';
import {MatStepperModule} from '#angular/material/stepper';
please see picture 4
https://drive.google.com/file/d/13lEL-rkKVvC_CPK_SDYeUOJ6fysEkDkn/view?usp=sharing
I also created another angular8 small sample project with above angular material import writing, work fine in the sample project.
but in our project, after we run the project dotnet run
we got below error, which indicate
at Object.eval (SharedModule.ts:6) //line 6
at eval (SharedModule.ts:90) //line 90
these two lines has issue.
Please see picture 5
https://drive.google.com/file/d/1m8ibzHs6whBnzKAuH000lQKVHHY-q0AD/view?usp=sharing
line 6 is import {MatDialogModule} from '#angular/material/dialog';
please see picture 6
https://drive.google.com/file/d/1i-_By1bDu4mmySiVRS13h2PhwSzUNrPD/view?usp=sharing
line 90 is export class SharedModule {}
please see picture 7
https://drive.google.com/file/d/1htQTNXZd_bcFCk4QxKn0nSRGi1jCLL6s/view?usp=sharing
currently I have not any clue why import #angular/material has that error message.
I have tested below scenario
If I completed deleted every import from #angular/material ,then project can run fine.
but if I just import a single Angular button
import {MatButtonModule} from '#angular/material/button';
then the project failed.
I created simple sample project always work fine.
I deleted node_modules folder, to reinstall npm install, project still has same error.
when I install #angular/ material npm install --save #angular/material#8, no any error show up in terminal .
just in the project,after upgrade from v7.21 to v8 then got above error.
Did you do export at NgModule in app.module.ts

Latex package missing but tlmgr says I have it

I'm trying to render a latex document I got from school. the problem seems to be coming from the document using the package "diagrams".
I get the error: "diagrams.sty Latex error: File 'pstricks.sty' not found"
When I go to the terminal and run sudo tlmgr install pstricks, I get the response tlmgr install: package already present: pstricks. So I'm not sure what to do next.
I'm using the app TexPad on MacOS and just updated my tex install via MacTex. Thanks in advance for any advice!

Instaling without cocoapods

https://github.com/IBM-Swift/Swift-SMTP
Im sorry if this is a dumb question but I am trying to install this inside my app and there is no documentation on how to add it. I always use cocoapods but it seems this can't be used for this project. Could anyone help me I need this functionality
That particular project/repo uses Swift Package Manager, so in Terminal cd into the project root:
$ swift package generate-xcodeproj
This will create an .xcodeproject which you'll then open and build. Once you've done that just drag the built framework into the project you'd like to include it in and use the import:
import SwiftSMTP

Requiring unknown module "498" error in ReactNative getting started example

I'm trying to build and run an iOS simulator version of the getting started React Native project from the instructions at:
https://facebook.github.io/react-native/docs/getting-started.html
The app launches in the XCode simulator, displays it's window very briefly but then an exception occurs that opens a red screen with the message
"Requiring unknown module "498".If you are sure the module is there,
try restarting Metro Bundler. You may also want to run yarn, or npm
install (depending on your environment).
loadModuleImplementation require.js:176:29
viewPropTypes.js:15:30
loadModuleImplementation require.js:212:12
View.js:20:22
loadModuleImplementation require.js:212:12
AppContainer.js:22:13"
etc
Line 15 of ViewPropTypes is
const PlatformViewPropTypes = require('PlatformViewPropTypes');
Line 20 of node_modules/react_native/Libraries/Components/Views/View.js is
const ViewPropTypes = require('ViewPropTypes');
Note: There is another, 15 line View.js files in the directory structure at node_modules/react_native/lib/ it's basically a stub containing
// This is a forwarding module to allow React to require React Native internals
// as node dependency
module.exports = require('View');
I'm on the latest of everything, MacOS High Sierra (10.13.4), XCode 9.3 with 9.3 command line tools installed. I've tried running yarn and npm install, and a fresh install. Obviously I have NPM and Watchman installed. Any ideas why the stock example won't run for me?
Newbie mistake. I had previously attempted to build a different React Native project in a different directory, and Metro Bundler was still pointed at the previous project. As the error message suggested, restarting Metro Bundler fixed the problem.
Also didn't realize the errors in the exception screen were tappable, they take you right into the Metro Bundler terminal process for more detail. Hope this helps someone else too!
In my case, just close all the related process, and re-run react-native run-android solved the problem.
refer to: https://github.com/facebook/react-native/issues/11568
I had the same issue.
In my case, while creating a reusable component, I wasn't importing React into the file,as I was not using them(in functional component) in the component file.
Turns out that jsx to React Element conversion happens per file/module basis, so we should import React and component in every file.
Including Both React and Component normally, solved the problem.
For me I got "955" error. And a simple solution was to
import React, {Component} from "react";

Resources