astro-pwa-starter icon indicating copy to clipboard operation
astro-pwa-starter copied to clipboard

Build fails with error "addWatchFile is not a function". Same behavior occurs on my machine and on Netlify

Open manach opened this issue 2 years ago • 2 comments

I cloned the project and encountered the above error when I ran "npm run dev". So I tried the "deploy to Netlify" button from the Astro themes site and got the same error. Here is the detailed error message from the Netlify failed build:

at Object.astro:config:setup (/opt/build/repo/node_modules/@astrojs/tailwind/dist/index.js:100:11)

at async withTakingALongTimeMsg (file:///opt/build/repo/node_modules/astro/dist/integrations/index.js:13:18)

at async runHookConfigSetup (file:///opt/build/repo/node_modules/astro/dist/integrations/index.js:62:7)

at async AstroBuilder.setup (file:///opt/build/repo/node_modules/astro/dist/core/build/index.js:41:21)

at async AstroBuilder.run (file:///opt/build/repo/node_modules/astro/dist/core/build/index.js:125:23)

at async build (file:///opt/build/repo/node_modules/astro/dist/core/build/index.js:22:3)

at async runCommand (file:///opt/build/repo/node_modules/astro/dist/cli/index.js:190:14)

at async cli (file:///opt/build/repo/node_modules/astro/dist/cli/index.js:207:5)

Thanks for all your hard work; I'm new to Astro and just having this structure to work with is really helpful.

manach avatar Oct 15 '22 02:10 manach

same issue here

bitmoji

yacosta738 avatar Oct 16 '22 13:10 yacosta738

Hey @manach @yacosta738, thanks for checking out the starter! I'll take a closer look at this tonight.

Does building and running the starter work locally for both of you?

shaunchander avatar Oct 16 '22 14:10 shaunchander