question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax Error: TypeError: this.getOptions is not a function

See original GitHub issue

版本信息

"veui": "^2.2.0",
"veui-theme-dls": "^2.2.0",
"vue": "^2.6.11"

问题详情

image 引入组件后报错!按照readme文档要求配置了!

问题复现

用@vue-cli搭建项目可复现此问题

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Justineocommented, Nov 5, 2021

我按照那个配置以后

并没有,我看到你的配置还是和文档里不一样。你直接复制文档里的吧……

@@ -2,7 +2,9 @@
   css: {
     loaderOptions: {
       less: {
-        javascriptEnabled: true,
+        lessOptions: {
+          javascriptEnabled: true
+        }
       }
     }
   },
0reactions
danielmlccommented, Nov 6, 2021

确实这样。谢谢

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: this.getOptions is not a function - vue.js
Solved my problem in a Rails 6.0.1 app. I'm adding my comment here because the console syntax here is what you "normally" use...
Read more >
TypeError: this.getOptions is not a function #517 - GitHub
I'm getting this error when using Webpack 5.59.1 and the latest version of style-loader. Do I still need to downgrade to style-loader@2? (Also ......
Read more >
Syntax Error: TypeError: this.getOptions is not a function
Changing less-loader version to 7.3.0 fixed this issue.
Read more >
webpack and cssloader version problem : r/webdev - Reddit
I've researched this question and done exactly what the solution says. `Syntax Error: TypeError: this.getOptions is not a function.
Read more >
vue Syntax Error: TypeError: this.getOptions is not a function
还有一种情况,使用lang="less"之后发现编译报错,Syntax Error: TypeError: this.getOptions is not a function. 降低一下less版本.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found