Git Product home page Git Product logo

Comments (4)

elbywan avatar elbywan commented on June 4, 2024 1

Seems like you are using webpack and babel-loader, I think that you are missing the right babel preset (babel 7 / babel 6).

You need to install it and put it inside your babel configuration file, without it, babel does not "understand" how to transpile jsx.

You can also have a look at this link that might provide some help.

Closing the issue since it does not seem to be directly related to bosket.

from bosket.

sheriffmarley avatar sheriffmarley commented on June 4, 2024 1

Thanks you pointed me in the correct direction. :)
For any other who is using laravel-mix . Add a .babelrc file to your project folder and install the this dependency https://github.com/vuejs/jsx Then add the preset to it and you're good to go

from bosket.

elbywan avatar elbywan commented on June 4, 2024

@sheriffmarley I don't think that there is something wrong in the doc. since the demos seem to be working fine.

i'm not be able to get it compiled.

If you get a compilation error, then something is wrong in your project configuration I guess. Try reading the vuejs jsx guide, and if you are using babel you might be missing the right preset.

from bosket.

sheriffmarley avatar sheriffmarley commented on June 4, 2024

Thought so too, but i cannot get it to build correctly I always either get a string or an compilation error:
And honestly i don't have any clue whats wrong.

ERROR in ./resources/assets/js/components/Filemanager/Tree.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/assets/js/components/Filemanager/Tree.vue?vue&type=script&lang=js&)
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: C:\path\laravel\resources\assets\js\components\Filemanager\Tree.vue: Unexpected token (129:29)

  127 |                 }
  128 |             },
> 129 |             display: item => <a>{ item.label }</a>,

I just wanted to add a folder icon to the items if the item has no opener element.

from bosket.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.