Skip to content

The example "with-external-scoped-css" works randomly  #3276

@anacicconi

Description

@anacicconi

Context

I need to use external sass stylesheets so I decided to follow the "with-external-scoped-css" example. However, the behavior is quite strange. The first time I launch the project it creates a static folder and I have my css working. If I try to make changes and run the project again nothing happens the most part of the time. Sometimes the static folder is re-created but it's really random.

Steps to Reproduce

  1. Go to the "with-external-scoped-css" project

  2. npm install && npm run start

Result: you may have a static folder and the css must work.

  1. change the font-size in the index.sass file

  2. npm run start

Result: nothing happens

  1. try to delete the .next folder and the static folder

  2. start the whole process again (npm install && npm run start)

Result: sometimes the static folder is re-created and sometimes it isn't

Expected Behavior

  1. npm install && npm run start

Result: the static folder should be created and the css should be working

  1. change the font-size in the index.sass file

  2. npm run start

Result: the css changes

Your Environment

Mac OS 10.11.6
node v8.6.0
npm 5.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions