หน้า 1 จากทั้งหมด 1

วิธีแก้ ติดตั้ง Odoo 12 สร้างฐานข้อมูล แล้วเจอปัญหา Could not execute command 'sassc'This error occured

โพสต์แล้ว: อาทิตย์ 21 ต.ค. 2018 7:19 pm
โดย OpenERPThailand_staff
วิธีแก้ ติดตั้ง Odoo 12 สร้างฐานข้อมูล แล้วเจอปัญหา Could not execute command 'sassc'This error occured

Style error

The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.

Could not execute command 'sassc'This error occured while compiling the bundle 'web.assets_common' containing:
- /web/static/lib/bootstrap/scss/_functions.scss
- /web/static/lib/bootstrap/scss/_mixins.scss
- /web/static/src/scss/utils.scss
- /web/static/src/scss/bs_mixins_overrides.scss
- /web/static/src/scss/primary_variables.scss
- /web_editor/static/src/scss/web_editor.variables.scss
- /web/static/src/scss/secondary_variables.scss
- /web/static/lib/bootstrap/scss/_variables.scss
- /web/static/src/scss/fonts.scss
- /web/static/src/scss/ui.scss
- /web/static/src/scss/ui_extra.scss
- /web/static/src/scss/navbar.scss
- /web/static/src/scss/mimetypes.scss
- /web/static/src/scss/modal.scss
- /web/static/src/scss/animation.scss
- /web/static/src/scss/rainbow.scss
- /web/static/src/scss/datepicker.scss
- /web/static/src/scss/banner.scss
- /web/static/src/scss/colorpicker.scss
- /web/static/src/scss/keyboard.scss
- /web_tour/static/src/scss/tip.scss
- /web_tour/static/src/scss/keyframes.scss

Odoo Client Error

An error occurred

Please use the copy button to report the error to your support service.

TypeError: el is undefined

/web/content/349-a5aff2f/web.assets_common.js:3739
Traceback:
computeFloatOuterWidthWithMargins@http://xxxx/web/content/349-a5aff2f/web.assets_common.js:3739:52
_adapt@http://xxxx/web/content/349-a5aff2f/web.assets_common.js:3738:425


วิธีแก้ ให้ติดตั้ง sassc เข้าไปใหม่
ใช้ libsass เวอร์ชั่น 0.12.3

ติดตั้งเสริมตามนี้

โค้ด: เลือกทั้งหมด

cd /usr/local/lib/
sudo git clone https://github.com/sass/sassc.git --branch 3.4.2 --depth 1
sudo git clone https://github.com/sass/libsass.git --branch 3.4-stable --depth 1
sudo git clone https://github.com/sass/sass-spec.git --depth=1



โค้ด: เลือกทั้งหมด

echo 'SASS_LIBSASS_PATH="/usr/local/lib/libsass"' | sudo tee -a /etc/environment
source /etc/environment



โค้ด: เลือกทั้งหมด

sudo make -C libsass



โค้ด: เลือกทั้งหมด

sudo make -C sassc
sudo make -C sassc install


เสร็จแล้ว restart odoo 12 ก็จะได้ odoo 12 ไว้ใช้งาน ล่ะ