Comments (4)
I am also running into this issue.
I just manually changed the module
key in the package.json
file to browser
before packing up my serverless code as a test, and my code all worked as expected.
After changing browser
back to the incorrect module
see package.json standard and webpack docs...
I added a rule to the module
key in my webpack configuration that specifies the correct mainField
{
test: /node_modules\/@octokit\/webhooks(-methods)?/,
resolve: {
mainFields: ['main']
}
}
I suspect if this bug is ever completed, this may have to change, but for now... this is working for me in case anyone else finds this thread.
from webhooks-methods.js.
Unfortunately this isn't a problem we can fix ourselves. This would be a problem with the build system, which is not maintained anymore.
This will get fixed once we switch to using pure ESM + seperate types
from webhooks-methods.js.
We are starting to migrate away from Pika, and towards using esbuild to generate the different bundles, and tsc to generate the types.
We will be able to get this addressed in a new major version
from webhooks-methods.js.
#159 Should help get this sorted out
In the meantime, you can always load the package from a CDN:
import { sign, verify } from "https://esm.sh/@octokit/[email protected]";
from webhooks-methods.js.
Related Issues (6)
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 webhooks-methods.js.