Parcel: 馃悰 @webcomponents Cannot resolve dependency 'vertx'

Created on 8 Dec 2017  路  8Comments  路  Source: parcel-bundler/parcel

Choose one: is this a 馃悰 bug report or 馃檵 feature request? 馃悰

I've been giving parcel a go as a replacement for my webpack config.
It's running into the same issue I had with webpack where it had an issue with the webcomponents polyfill

馃帥 Configuration (webpackconfig)

This is the line that would fix a webpack config

{
    new webpack.IgnorePlugin(/vertx/)
}

馃 Expected Behavior

The expectation is for a way to ignore vertx

馃槸 Current Behavior

@webcomponents/webcomponentsjs/webcomponents-lite.js:27:271: Cannot resolve dependency 'vertx'
That is the error message I get upon running a build

馃敠 Context

I'd like to replace my webpack config with parcel if at all possible. This is the error that is currently holding me back because my component model heavily relies on web components

馃實 Your Environment

| Software | Version(s)
| ---------------- | ----------
| Parcel | 1.0.3
| Node | 6.12.0
| npm/Yarn | 3.10.10
| Operating System | ubuntu 17.10

Bug

All 8 comments

So put more generally, you're asking for a way to ignore certain file name patterns in Parcel?

Yeah I think that sounds right to me.

I think we need to implement a CLI option called --ignore

It should work like this (once implemented):

parcel --ignore *.vertx

Do you guys think we should use wildcards for the ignore, or regex?

parcel --ignore /\.vertex/

I guess we could also support both...

why is vertx required if it isn't a dependency?

The original answer I got to this problem for my webpack solution came here.
https://github.com/webcomponents/webcomponentsjs/issues/794
I can't say vertx is a dependency of my app.

Beyond this one example, I think there are going to be other packages (polyfills, etc.), that I want ignored by a package bundler. I think this project needs some sort of strategy for how to include/exclude specific links in the index.html file. Since you want to avoid configuration, maybe a special attribute on the link? There is a lot of weirdness in NPM modules, and I am concerned you will have a never-ending string of these types of bugs when the simplest idea is to just raw copy them to dist and continue to link them directly.

Ya, I think we should move this into a separate more general issue for adding an ignore flag.

This has been fixed by @webcomponents

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dotdash picture dotdash  路  3Comments

philipodev picture philipodev  路  3Comments

will-stone picture will-stone  路  3Comments

medhatdawoud picture medhatdawoud  路  3Comments

dsky1990 picture dsky1990  路  3Comments