GithubHelp home page GithubHelp logo

codesandbox / codesandbox-templates Goto Github PK

View Code? Open in Web Editor NEW
29.0 4.0 23.0 9.93 MB

Official Sandbox Templates and Utilities Packages for CodeSandbox

TypeScript 72.28% JavaScript 18.54% HTML 2.19% CSS 3.11% Vue 1.87% Shell 0.17% SCSS 0.47% Reason 0.01% Svelte 0.50% EJS 0.08% Handlebars 0.02% Marko 0.70% Stylus 0.06%

codesandbox-templates's Introduction

codesandbox-templates

codesandbox-templates's People

Contributors

alexnm avatar compuives avatar michaeldeboey avatar romainlanz avatar saeris avatar saravieira avatar siddharthkp avatar vitgottwald avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

codesandbox-templates's Issues

update qwik 0.100 to 1

I haven't found Qwik somewhere else. Could you please update your Qwik template? Especially these packages

"@builder.io/qwik": "^0.100.0",
"@builder.io/qwik-city": "^0.100.0",

Sapper on Codesandbox is v2, yet this uses v3.

It seems like this repository has been updated, but not pushed to codesandbox somehow?

What's the process for that to happen?

There's also an existing codesandbox/sapper-template repository which is the old v2 template - should that be archived?

Vue Client Template: Noisy error console with 3.1

https://codesandbox.io/s/noisy-vue-3-js-errors-xi3xi?file=/vue.config.js

You are running the esm-bundler build of Vue. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle. See http://link.vuejs.org/feature-flags for more details.

Sounds like the template needs to be regenerated with vue-cli or this file added...

// vue.config.js

const webpack = require('webpack')

module.exports = {
  configureWebpack: {
    plugins: [
      new webpack.DefinePlugin({
        __VUE_OPTIONS_API__: false,
        __VUE_PROD_DEVTOOLS__: false
      })
    ]
  }
}

Protip: Add console-feed to ignore list to get actually useful logs

Vue Template - App Component Mounting Incorrectly

I've got an very simple Vue app going based on the provided Vue template. As per the default behaviour of the template, a Vue component is being mounted to div#app in the index.html like so:

new Vue({
  render: h => h(App) // The App component is imported at the top of the main.js file.
}).$mount("#app");

The issue is that instead of mounting App into div#app it mounts into the body tag, replacing any other HTML in the body along with the div#app.

The contents of the body looks like this:

<p>Test</p>
  <div id="app"></div>
<p>Test</p>

I put the paragraph tags in there for testing purposes. They disappear when the Vue App component is mounted into the div#app.

The weird thing is that I exported to my machine and it works as expected. When run locally the test paragraphs remain in place when the App component mounts.

Here's a sandbox where this weird behaviour can be seen: https://codesandbox.io/s/green-feather-eoci0

Here's the associated Github repo: https://github.com/stungeye/ToDo-Vue

I don't know where to go from here. The code works correctly locally but incorrectly when run on codesandbox. Thoughts?

NestJS template does not work

The type checker checks node_modules and throws 53 errors when starting up a bare NestJS template (no user modifactions).

[.....]
node_modules/@types/express/index.d.ts:111:54 - error TS2315: Type 'Response' is not generic.

111     export interface Response<ResBody = any> extends core.Response<ResBody> { }
                                                         ~~~~~~~~~~~~~~~~~~~~~~

Found 53 error(s).

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.