Parcel is not able to build projects that use webnative.
Impact
Developers may not be able to build their projects if they use Parcel. There may a way to configure Parcel to successfully build.
Solution
Not clear, but it seems that Parcel expects a src directory. We may be able to provide some resolution information to instruct Parcel to use lib instead.
Detail
Describe the bug
When running parcel build in a project that imports webnative, the build fails with an error like:
🚨 Build failed.
[Error: ENOENT: no such file or directory, open '/Users/brian/code/fission/webnative-bundler-test/node_modules/webnative/src/auth.ts'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/brian/code/fission/webnative-bundler-test/node_modules/webnative/src/auth.ts'
}
Summary
Problem
Parcel is not able to build projects that use webnative.
Impact
Developers may not be able to build their projects if they use Parcel. There may a way to configure Parcel to successfully build.
Solution
Not clear, but it seems that Parcel expects a
src
directory. We may be able to provide some resolution information to instruct Parcel to uselib
instead.Detail
Describe the bug
When running
parcel build
in a project that imports webnative, the build fails with an error like:To Reproduce Steps to reproduce the behavior:
npm run parcel
Expected behavior
Parcel is able to build a project that uses webnative without an error.
Desktop (please complete the following information):
0.31.1
2.2.1
Additional context
Parcel was working at
2.0.0
. It's possible that Parcel changed some expectation in the newest versions.