unimal-jp / spear

The spear OSS repository
https://late-cloud-6411.spearly.app
MIT License
10 stars 1 forks source link

Vite has build error with Spear 1.3.1 #163

Closed mantaroh closed 1 year ago

mantaroh commented 1 year ago

Describe the bug

The vite has build error with spear (v1.2.8~).

It looks like that dart-sass has legacy octet character internally.

To Reproduce

Steps to reproduce the behavior:

  1. Add spear into vite project
  2. Build the vite project.

Expected behavior

Could build without error.

Screenshots

N/A

Desktop (please complete the following information):

Ubuntu 22.04

Smartphone (please complete the following information):

N/A

Additional context

None

mantaroh commented 1 year ago
✔︎ ./assets/variables-v2.scss
$ run-p type-check build-only
$ vite build
$ vue-tsc --noEmit
vite v4.0.4 building for production...
✓ 3020 modules transformed.
rendering chunks (83)...[vite-plugin-top-level-await] Transform failed with 1 error:
<stdin>:996:152477: ERROR: Legacy octal escape sequences cannot be used in an ECMAScript module
[vite-plugin-static-copy] Copy count was not set.
error during build:
Error: Transform failed with 1 error:
<stdin>:996:152477: ERROR: Legacy octal escape sequences cannot be used in an ECMAScript module