Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting started instructions doesn't work #111

Open
tiborsaas opened this issue May 14, 2023 · 1 comment
Open

Getting started instructions doesn't work #111

tiborsaas opened this issue May 14, 2023 · 1 comment
Assignees
Labels

Comments

@tiborsaas
Copy link

Describe the bug

I followed the instructions on the homepage and I got this error:

λ pagic build --watch --serve
error: Uncaught TypeError: Cannot read properties of undefined (reading 'exclude')
      ...(this.projectConfig.exclude ?? []),
                             ^
    at Pagic.initConfig (https://deno.land/x/[email protected]/src/Pagic.ts:273:30)
    at eventLoopTick (ext:core/01_core.js:181:11)
    at async Pagic.rebuild (https://deno.land/x/[email protected]/src/Pagic.ts:251:5)
    at async Pagic.build (https://deno.land/x/[email protected]/src/Pagic.ts:213:5)

To Reproduce

I'm on Windows 10;

deno 1.33.3 (release, x86_64-pc-windows-msvc)
v8 11.4.183.2
typescript 5.0.4
@xcatliu
Copy link
Owner

xcatliu commented May 30, 2023

Hi @tiborsaas , thanks for your issue, it seems like a config file is not provided, so this.projectConfig comes with undefined.

Please double check the pagic.config.tsx, if this error still throws, please provide a git repo which can reproduce this bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants