Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

84
Views
El error de soporte experimental para decoradores permanece después de habilitar la configuración adecuada

Tengo este componente vue dentro de un subcomponente:

mostrar.blade.php

 new Vue({ el: '.v-thread', name: 'Thread', data: { posts: @json($posts), selectablePosts: @json($selectablePosts), postActions: { 'delete': "{{ Forum::route('bulk.post.delete') }}", 'restore': "{{ Forum::route('bulk.post.restore') }}" }, postActionMethods: { 'delete': 'DELETE', 'restore': 'POST' }, selectedPostAction: 'delete', selectedPosts: [], selectedThreadAction: null }, created() { this.posts.data = this.posts.data.filter(post => post.sequence != 1); }, methods: { toggleAll() { this.selectedPosts = (this.selectedPosts.length < this.selectablePosts.length) ? this.selectablePosts : []; }, submitThread(event) { if (this.threadActionMethods[this.selectedThreadAction] === 'DELETE' && !confirm("{{ trans('forum::general.generic_confirm') }}")) { event.preventDefault(); } }, submitPosts(event) { if (this.postActionMethods[this.selectedPostAction] === 'DELETE' && !confirm("{{ trans('forum::general.generic_confirm') }}")) { event.preventDefault(); } } } });

Debido al estilo escrito, recibo un error de VS Code:

El soporte experimental para decoradores es una característica que está sujeta a cambios en una versión futura. Configure la opción 'experimentalDecorators' en su 'tsconfig' o 'jsconfig' para eliminar esta advertencia.javascript

Creé un tsconfig.json como este:

 { "compilerOptions": { "experimentalDecorators": true, "allowJs": true } }

y también habilité la configuración para 'Experimental JS Decorators' en VS:

 "js/ts.implicitProjectConfig.experimentalDecorators": true,

Todavía tengo este problema. ¿Me he perdido algo?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!