Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
5 Odpowiedzi
2854 Widoki

I have a component in /bulletin_board_wall/static/src/bb_wall/wall_view


And I want to use this component in a different module but the import with 


import { WallView } from "@bulletin_board_wall/bb_wall/wall_view/wall_view";


doesn't work. 

Awatar
Odrzuć
Najlepsza odpowiedź

 I want to solve  this problem  too 

Awatar
Odrzuć
Autor Najlepsza odpowiedź

As I've fallen over my own question again:
The correct path is @MODULE_NAME/PATH_STARTING_AFER_SRC

eg: 

Filename:
/base_geoengine/static/src/js/views/geoengine/geoengine_record/geoengine_record.esm.js
Import:
import { GeoengineRecord } from "@base_geoengine/js/views/geoengine/geoengine_record/geoengine_record.esm";

Awatar
Odrzuć
Najlepsza odpowiedź

Hi ,

Please verify that you have taken the component from the correct path

eg:


import { WallView } from "@module_name/actual_path/js";
//and also try adding this inside the components
export class ClassName extends Component{
}
ClassName.components = {
WallView
}

Regards

Awatar
Odrzuć
Najlepsza odpowiedź

you have depens it ?

Awatar
Odrzuć
Najlepsza odpowiedź

Try this

import { WallView } from "@bulletin_board_wall/static/src/bb_wall/wall_view";



Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lut 25
1394
1
lut 24
2767
2
lip 25
430
1
maj 25
1219
0
maj 25
697