Giter Club home page Giter Club logo

svelte-template-parcel's Introduction

Svelte Template Parcel

This is a project template for Svelte apps with Parcel.js

To create a new project based on this template using degit:

npx degit alex-parra/svelte-template-parcel svelteParcel
cd svelteParcel

Note that you will need to have Node.js installed.

Get started

Install the dependencies...

cd svelteParcel
yarn install

...then start the dev server:

yarn dev

Navigate to localhost:1234.
You should see your app running. Edit a component file in src, save it, and the page should reload with your changes.

Build for Production

Run yarn build and then deploy the contents for the dist folder


Created by Alex Parra on 2019-10-20.

svelte-template-parcel's People

Contributors

alex-parra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

svelte-template-parcel's Issues

typescript support?

hey im just wondering if parcel and svelte can be used with typescript
your example wont work out of the box with typescript

Uncaught TypeError: _App.default is not a constructor

After pulling and running npm i && npm run dev, I see the following warning in the terminal:

Parser "parcel-plugin-svelte/lib/svelte-asset.js" failed to initialize when processing asset "src/components/App.svelte". Threw the following error:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './compiler.js' is not defined by "exports" in /Users/tom/code/svelte-template-parcel/node_modules/svelte/package.json

I then load http://localhost:1234/ and I see a blank screen and the following error in the console:

main.js:3 Uncaught TypeError: _App.default is not a constructor
    at Object.parcelRequire.main.js.~/components/App.svelte (main.js:3)
    at newRequire (main.1f19ae8e.js:47)
    at main.1f19ae8e.js:81
    at main.1f19ae8e.js:120

I have [email protected] installed globally.

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.