tony
tony
CDCloudflare Developers
Created by tony on 3/9/2024 in #pages-help
Cannot deploy on pages after installing remix-pwa
I followed this guide (https://developers.cloudflare.com/pages/framework-guides/deploy-a-remix-site/) to create a Remix app and it could deploy on cloudflare page successfully When I try to introduce Remix PWA https://remix-pwa.run/docs/installation The deployment has error
11:02:27.663 ✘ [ERROR] 1 error(s) and 0 warning(s) when compiling Worker.
11:02:27.664
11:02:27.664
11:02:27.667
11:02:27.668 ✘ [ERROR] Could not resolve "../build/server"
11:02:27.668
11:02:27.668 [[path]].ts:6:23:
11:02:27.668 6 │ import * as build from '../build/server';
11:02:27.668 ╵ ~~~~~~~~~~~~~~~~~
11:02:27.669
11:02:27.669
11:02:27.670 ✘ [ERROR] Build failed with 1 error:
11:02:27.670
11:02:27.670 [[path]].ts:6:23: ERROR: Could not resolve "../build/server"
11:02:27.663 ✘ [ERROR] 1 error(s) and 0 warning(s) when compiling Worker.
11:02:27.664
11:02:27.664
11:02:27.667
11:02:27.668 ✘ [ERROR] Could not resolve "../build/server"
11:02:27.668
11:02:27.668 [[path]].ts:6:23:
11:02:27.668 6 │ import * as build from '../build/server';
11:02:27.668 ╵ ~~~~~~~~~~~~~~~~~
11:02:27.669
11:02:27.669
11:02:27.670 ✘ [ERROR] Build failed with 1 error:
11:02:27.670
11:02:27.670 [[path]].ts:6:23: ERROR: Could not resolve "../build/server"
Please anyone can help?
3 replies