Code Monkey home page Code Monkey logo

Comments (3)

sodatea avatar sodatea commented on May 3, 2024

Can't reproduce.

  1. Do you have a reproduction repo?
  2. The error is thrown from the dotenv-expand dependency. Please check if there's any irregular syntax in your .env.* files in the project, or in any ancestor directories.

from create-vue.

aner-perez avatar aner-perez commented on May 3, 2024

Thanks for the quick reply, looks like the problem is with the "or in any ancestor directories" part of your answer.

I am running on a Linux system so I have a ".env" file in my home directory that is used by the shell (as has always been done in Unix systems). If I rename my $HOME/.env to $HOME/.tmp.env then I am able to run the dev server successfully.

If the project created by create-vue is going to recursively look up the directory structure for a file called .env*, then it should place a default .env file in the generated project so it does not go looking up the directory hierarchy to find a random unrelated file called .env* I tried creating an empty .env in the project folder and that seemed to also fix the issue.

As it stands, many Linux users will run into this issue and not know how to address it.

from create-vue.

sodatea avatar sodatea commented on May 3, 2024

Let's track it at vitejs/vite#6858 (comment) and vitejs/vite#6933

from create-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.