Skip to content

Vercel Build fails; Gitpod & Local doesn't #222

@skybird-dev

Description

@skybird-dev

Describe the bug
Deployment on Vercel with Paperbits Demo results in "404" error page, but runs locally & on Gitpod just fine.
Screen Shot 2022-12-12 at 9 49 17 PM

Screen Shot 2022-12-12 at 10 00 37 PM

WARNING in ./node_modules/ws/lib/buffer-util.js 113:23-44
Module not found: Error: Can't resolve 'bufferutil' in '/workspace/skybird.app/node_modules/ws/lib'
@ ./node_modules/ws/lib/receiver.js 12:42-66
@ ./node_modules/ws/index.js 7:21-46
@ ./node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js 7:18-31
@ ./node_modules/jsdom/lib/jsdom/browser/Window.js 21:22-83
@ ./node_modules/jsdom/lib/api.js 13:25-61
@ ./node_modules/@paperbits/common/publishing/jsdomHtmlDocumentProvider.ts 4:16-32
@ ./node_modules/@paperbits/common/publishing/index.ts 27:13-51
@ ./node_modules/@paperbits/core/core.publish.module.ts 11:21-60
@ ./src/startup.publish.ts 7:30-76

WARNING in ./node_modules/ws/lib/validation.js 117:24-49
Module not found: Error: Can't resolve 'utf-8-validate' in '/workspace/skybird.app/node_modules/ws/lib'
@ ./node_modules/ws/lib/receiver.js 13:43-66
@ ./node_modules/ws/index.js 7:21-46
@ ./node_modules/jsdom/lib/jsdom/living/websockets/WebSocket-impl.js 7:18-31
@ ./node_modules/jsdom/lib/jsdom/browser/Window.js 21:22-83
@ ./node_modules/jsdom/lib/api.js 13:25-61
@ ./node_modules/@paperbits/common/publishing/jsdomHtmlDocumentProvider.ts 4:16-32
@ ./node_modules/@paperbits/common/publishing/index.ts 27:13-51
@ ./node_modules/@paperbits/core/core.publish.module.ts 11:21-60
@ ./src/startup.publish.ts 7:30-76

Are not the Terser & Terser Webpack plugins supposed to resolve issues with UTF-8 encoding? Typescript stopped requiring specifying character sets because UTF-8 is the default, but I don't see how that's even relevant.

Screenshots
If applicable, add screenshots to help explain your problem.
Screen Shot 2022-12-12 at 12 35 06 PM

Desktop (please complete the following information):
macOS running Visual Studio
Gitpod

Additional context
Add any other context about the problem here.
This is with or without firebase integration, using the default build and my slightly custom build.
I've also tried Firebase hosting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions