plugin:vite:import-analysis Failed to resolve import "store/hooks" from src folder - testing

In the cypress12.3 when trying to run cypress component testing, on the runner, I got this error.
[plugin:vite:import-analysis] Failed to resolve import "store/hooks" from "src\components\integration\List.tsx". Does the file exist?
This error doesn't happen on cypress10.x.
I confirmed src folder is there, and also confirmed tsconfig.json file set correctly for src folder.

Related

pyinstaller-ModuleNotFoundError, How to incl module which added manually by __init__.py in pyinstaller

I have my_ui.py and resources_rc.py are automatically generated from a QT GUI designer.
I can run my_ui.py using python my_ui.py.
This is my-module structure
\my-module
\__init__.py
\my_ui.py
\resouces_rc.py
Content of init.py. resource_rc will be imported and later used inside my_ui.py
from my-module import resources_rc
sys.modules['resource_rc'] = resources_rc
pyinstaller command:
pyinstaller --paths=resources_rc.py myui.py --onefile
I got an error message when running ./dist/my_ui
ModuleNotFoundError: No module named 'resources_rc'
I have tried to run pyinstalled outside my-module directory and still i get this error message.
Any idea how to solve this problem? Many thanks.

error: package io.agora.rtm does not exist

Download git code and run Agora-RTM-Tutorial-Android project getting error
package io.agora.rtm does not exist getting this error message on all java file when import io.agora.rtm does not exist
You need to download the SDK and import the files to the cloned Project. Follow the steps described in the github page

Webpack: module build failed

I am running npm run dev with this simple app.js:
//import {JetApp, EmptyRouter, HashRouter } from "webix-jet";
import {JetApp} from "webix-jet/dist/es6/jet";
I am getting this error - not sure what i'm missing.
Module build failed: Module not found:
"./assets/app.js" contains a reference to the file "webix-jet/dist/es6/jet".
This file can not be found, please check it for typos or update it if the file got moved.
I've added webix and webix-jet via npm and I can see their sources/dist under node_modules
Thoughts?
First, normally you code must look like
import {JetApp} from "webix-jet";
so you need to import just from webix-jet module, there is no need to define exact file ( be sure that you have webix-jet as dependency in the package.json )
Also, this line ./assets/app.js" looks strange as well, as app.js is expected to be in the "src" folder, not in the "assets"

wsadmin with jython script gives error AttributeError: 'javapackage' object has no attribute 'SEC_SEGMENT'

I am running a jython script with wsadmin commands. It was running fine, until in a new unix env, it stopped working with following error:
AttributeError: 'javapackage' object has no attribute 'SEC_SEGMENT'
my test script looks like this:
#!/usr/bin/python
properties_file_path=sys.argv[0]
sys.path.append(properties_file_path)
import config
import ast
import datetime
start_time=datetime.datetime.now().strftime('%H:%M:%S.%f')[:-3]
print(start_time+"-Starting execution of script test.py")
new_domain=config.SEC_SEGMENT['new_domain']
print("new domain: "+new_domain)
my config properties, config.py:
SEC_SEGMENT = {
'new_domain': 'Domain2',# New Security Domain
}
in other environments its working fine. Is it a library issue?
Issue is resolved. There was a folder with the same name 'config' as properties file 'config.py' , under same parent directory.
Due to this naming conflict of files, was getting above issue. Issue was resolved by renaming the 'config' folder

aurelia - error using material-components-web with skelton-esnext project

I've successfully used the material-components-web library from within my aurelia skeleton-esnext-webpack projects but I am strugling to get them working in a skeleton-esnext project.
The problem seems to be with the fact that the skeleton-esnext project uses jspm with system.js as its module loader.
I have added "#material/textfield": "npm:#material/textfield#^0.3.6" to the jspm dependencies section of my package.json which seems to install the correct #material libraries to my jspm_modules/npm/#material.
Now, when I try to access any class from this library from within any my aurelia view models
import {MDCTextfieldFoundation} from '#material/textfield';
I get the following error in the browser when I run the project:
Error: (SystemJS) Unexpected token import
SyntaxError: Unexpected token import
at eval (<anonymous>)
at Object.eval (http://localhost:9000/jspm_packages/npm/#material/textfield#0.3.6.js:1:123)
at eval (....
Any suggestions to whats most likely causing this issue?
SystemJS is importing the raw source file of the plugin instead of the transpiled one (you can see this if you look into jspm_packages/npm/#material/textfield#0.3.6.js.
You can fix it by changing the location in there to point to the dist directory of the directory textfield#0.3.6. However, it gets overriden all the time on potential updates. And it is not saved in CVS.
Another, more simpler approach, would be to import the correct file in your view model:
import {MDCTextfieldFoundation} from '#material/textfield/dist/mdc.textfield';