Comments (4)
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.
@iamwangkj please check out v1.1.13
The error should be gone :)
from parcel-plugin-custom-dist-structure.
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.
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)
- Incorrect dependency resolution after update in watch mode with public-url HOT 17
- Multiple HTML pages cannot use the same css, image HOT 17
- Ignore some files HOT 15
- The image path in css doesn't replaced HOT 19
- Wrong path of imported image on build HOT 9
- DevTools failed to load SourceMap HOT 6
- Request information about readme enclosed image HOT 4
- The plugin doesn't work for me HOT 4
- Merge with parcel-plugin-structurize HOT 4
- Puts css in folder but does not link to it HOT 2
- Does it work for parcel version 2? HOT 8
- How to save svg fonts to the fonts folder? HOT 7
- The plugin "parcel-plugin-custom-dist-structure" has encountered an error. HOT 3
- Websocket is not open - Error HOT 2
- Configure HOT 2
- Not working in npm7 workspaces HOT 2
- [Suggestion] Join forces with 'structurize' and 'parcel-namer-rewrite' HOT 6
- Custom dist structure in parcel v2 HOT 4
- parcel localhost breaks when customDistStructure is added to package.json HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parcel-plugin-custom-dist-structure.