Coder Social home page Coder Social logo

Comments (4)

VladimirMikulic avatar VladimirMikulic commented on June 14, 2024

Hi @iamwangkj. Thank you for reporting this issue. Could you please specify project folder structure (src) and how files are referenced?

from parcel-plugin-custom-dist-structure.

VladimirMikulic avatar VladimirMikulic commented on June 14, 2024

@iamwangkj please check out v1.1.13
The error should be gone :)

from parcel-plugin-custom-dist-structure.

EdgarKogel avatar EdgarKogel commented on June 14, 2024

Hi! I have the same problem and FIX #26 does not help in my case.

If you install Parcel globally as mentioned on the Parcel Getting Started page (yarn global add parcel-bundler) this error is still there. But the fix helped me to find a workaround for now.

If I add parcel-bundler also locally with yarn add -D parcel-bundler the plug-in worked for me like expected and helped me to achieve the output structure I want. So thanks for writing this plug-in.

Maybe it's possible to cover the global installation of Parcel also in future versions, because this seems to be the standard way of installing Parcel at least for new users.

from parcel-plugin-custom-dist-structure.

VladimirMikulic avatar VladimirMikulic commented on June 14, 2024

Hi @EdgarKogel. Thank you for your comment.
I am glad my plugin served you well.

Unfortunately, it's a bit complicated to retrieve the path of the globally installed Parcel package.
As a fellow JS developer, you probably understand the fragmentation of this ecosystem :)
Some users use NPM, others use yarn, some use parcel package, then others use parcel-bundler and so on...

I agree with you that this is mostly a standard way of installing Parcel, but covering all of the above cases is error-prone. (already tried once)
Until further notice, you'll need to have Parcel as a project's development dependency.

from parcel-plugin-custom-dist-structure.

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.