Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netlify: Invalid filename - Deployed filenames cannot contain # or ? characters

I am trying to deploying my website on Netlify from my GitHub.

However I am stuck to the following error:

11:37:19 AM: failed during stage 'deploying site': Invalid filename 'node_modules/es5-ext/date/#/format.js'. Deployed filenames cannot contain # or ? characters

I tried to delete and upgrade the module es5-ext but the error persists.

like image 694
Magofoco Avatar asked Mar 04 '23 07:03

Magofoco


1 Answers

I don't know if i'm too late to this but I just ran into this issues here's what I did which fixed my issues

  • base directory : yourApps
  • build command : CI= npm run build
  • publish directory : yourApps/build

I used craco in my react apps because I needed it to work with Tailwind css , I don't know if this will work for you , but that solution worked for me

like image 96
Ben Avatar answered Mar 07 '23 03:03

Ben