Giter Club home page Giter Club logo

Comments (14)

robdodson avatar robdodson commented on May 3, 2024 3

I just followed the tutorial on the front page, it didn't mention needing a .babelrc :)

from parcel.

chriszrc avatar chriszrc commented on May 3, 2024 2

Using 1.9.0, if the package.json isn't there, you get the error:

/Users/chriszrc/github/proj-ticker/web/index.html: Cannot read property 'posthtml' of null
    at getConfig (/Users/chriszrc/.npm-global/lib/node_modules/parcel-bundler/src/transforms/posthtml.js:29:32)
    at <anonymous>

People/I should read the docs more carefully, but it might be nice to have a better error message here-

from parcel.

devongovett avatar devongovett commented on May 3, 2024 1

Ah it's because there is no package.json in your project. I will fix.

from parcel.

robdodson avatar robdodson commented on May 3, 2024 1

Just installed 1.0.1, now i'm getting: Couldn't find preset "env" relative to directory "/Users/robdodson/.nvm/versions/node/v8.9.1/lib/node_modules/parcel-bundler/src"

from parcel.

trafnar avatar trafnar commented on May 3, 2024

I ran into the same thing while following the getting started page.

I recommend making more explicit instructions on that page. I've submitted a PR with my suggestion for doing that. parcel-bundler/website#4

from parcel.

robdodson avatar robdodson commented on May 3, 2024

After adding a package.json I'm now hitting #1

Getting closer though! 😄

from parcel.

devongovett avatar devongovett commented on May 3, 2024

Published v1.0.1 which should fix both issues.

from parcel.

devongovett avatar devongovett commented on May 3, 2024

blargh. did you create a .babelrc but forget to install babel-preset-env in your project?

from parcel.

jaruesink avatar jaruesink commented on May 3, 2024

Is that in the documentation somewhere?

from parcel.

devongovett avatar devongovett commented on May 3, 2024

https://parceljs.org/transforms.html

from parcel.

devongovett avatar devongovett commented on May 3, 2024

hmm, you shouldn't need a babelrc for that. I tried the code from the homepage just now and it seemed to work for me... i'll look into it more.

from parcel.

Jayphen avatar Jayphen commented on May 3, 2024

I have the same issue as above when following the getting started tutorial. The issue occurs when importing the css file.

from parcel.

thomaslittle avatar thomaslittle commented on May 3, 2024

same issues here when attempting to import css or scss. /usr/local/lib/node_modules/parcel-bundler/src/builtins/css-loader.js: Couldn't find preset "env" relative to directory "/usr/local/lib/node_modules/parcel-bundler/src"

from parcel.

devongovett avatar devongovett commented on May 3, 2024

These issues should both be fixed in v1.0.2.

from parcel.

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.