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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
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";
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
Try this
import { WallView } from "@bulletin_board_wall/static/src/bb_wall/wall_view";
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
2
Sep 25
|
2594 | |||
|
1
Feb 24
|
3814 | |||
|
2
Jul 25
|
2088 | |||
|
1
May 25
|
2493 | |||
|
0
May 25
|
1700 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.