Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

html <div data="<%= VITE_APP_ENV %>"></div> VITE_APP_ENV is not defined #173

Open
xinlei3166 opened this issue Jun 1, 2021 · 0 comments

Comments

@xinlei3166
Copy link

xinlei3166 commented Jun 1, 2021

# sao -v

sao/1.7.1 darwin-x64 node-v14.17.0
# sao xinlei3166/vite-vue-template myvitevue

error ReferenceError: ejs:11
    9|   <body>
    10|     <div id="app"></div>
 >> 11|     <div data="<%= VITE_APP_ENV %>"></div>
    12|     <script type="module" src="/src/main.ts"></script>
    13|   </body>
    14| </html>

VITE_APP_ENV is not defined
    at eval (eval at compile (/usr/local/lib/node_modules/sao/node_modules/ejs/lib/ejs.js:652:12), <anonymous>:12:26)
    at Object.anonymous [as fn] (/usr/local/lib/node_modules/sao/node_modules/ejs/lib/ejs.js:682:17)
    at Transformer.render (/usr/local/lib/node_modules/sao/node_modules/jstransformer/index.js:289:25)
    at /usr/local/lib/node_modules/sao/lib/runActions.js:69:27
    at Array.forEach (<anonymous>)
    at /usr/local/lib/node_modules/sao/lib/runActions.js:61:20
    at /usr/local/lib/node_modules/sao/node_modules/majo/dist/majo.cjs.js:58:49

image

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

No branches or pull requests

1 participant