-
Notifications
You must be signed in to change notification settings - Fork 337
Workers Sites with custom webpack config #1927
Comments
Related upstream issue: TypeStrong/ts-loader#595 |
I assume you're using |
As @hamzahsn say, I used |
With ts-loader 8.3.0 I'm getting below error
With ts-loader 9.2.2 I'm getting this
|
Same here |
Please note that wrangler only works with webpack 4.x, a couple of these errors sound like webpack 5 errors. If you want to use webpack 5, use a custom build as described in https://developers.cloudflare.com/workers/cli-wrangler/configuration/#build |
π Bug report
Describe the bug
As per the documentation, I'm trying to setup a cf worker site with custom
webpack
config. Thetype
andwebpack_config
options are set inwrangler.toml
, as well asbucket
andentry-point
. Similarly,context
andentry
are set inwebpack.config.js
. Somehow,webpack
is still returning an errorReproduce the bug
cd cf-worker-site-typescript && npm install
npm run dev
(alias towrangler dev
)Expected behavior
I expect the project to be compiled & build correctly, then served through
wrangler dev
command.Environment and versions
wrangler -V
: wrangler 1.16.1node -v
: v15.14.0wrangler.toml
:The text was updated successfully, but these errors were encountered: