Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When load image via binding attribute, scss error occure. #1513

Open
webdeveloper0429 opened this issue Nov 12, 2019 · 0 comments
Open

When load image via binding attribute, scss error occure. #1513

webdeveloper0429 opened this issue Nov 12, 2019 · 0 comments

Comments

@webdeveloper0429
Copy link

in order to load images dynamically I used below code

<img :src="require('@/assets/' + sliderItem.src)" />

so that images are loaded correctly but in this case unexpected scss error shows.

./src/assets/sass/custom/dropdowns.scss (./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-3-1!./node_modules/postcss-loader/src??ref--8-oneOf-3-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-3-3!./src/assets/sass/custom/dropdowns.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Undefined variable.
  ╷
4 │     height: $navbar-height;
  │             ^^^^^^^^^^^^^^
  ╵
  /usr/src/app/src/assets/sass/custom/dropdowns.scss 4:13  root stylesheet

actually scss works well without image binding(above code)

any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant