aos icon indicating copy to clipboard operation
aos copied to clipboard

unable to build app with aos (dev server working)

Open nakajimayoshi opened this issue 3 years ago • 1 comments

I can get the development server working fine but run into issues when I try deploying the site on Vercel

This is:

  • Bug

Specifications

  • AOS version: 2.3.4
  • OS: Windows 10 Home
  • Browser: Firefox

Expected Behavior

npm run build should be successful

Actual Behavior

app fails at build time

Steps to Reproduce the Problem

  1. Create a react typescript app with Vite and tailwind
  2. add your tailwind.css file to /styles/
  3. Implement aos and go to deploy on vercel, the log will throw an error shown below.

image

Detailed Description

Possible Solution

nakajimayoshi avatar Jul 10 '22 22:07 nakajimayoshi

well it clearly says on 12:46:27.99 that you need to add type=module to the script tag

cvanh avatar Sep 19 '22 08:09 cvanh