Skip to content

Public Beta Testing of react-scripts@1.0.0 #2172

Description

@gaearon

Known Issues:

  • None (please report!)

Updates:

  • Published the first canary.
  • Published another canary that fixes the path issue and disables require.ensure() warning.
  • Published another canary that re-enables parsing of require.ensure().
  • Published a canary with more legible colors on Windows and port detection fixes
  • Published a canary with Jest fixes, stricter module resolution, Uglify fix, and more consistent overlay styling
  • Published a canary with fixed npm package, more visual fixes to overlays, better build messages, and smaller post eject code size
  • Final call for testing: Published the last canary with IE fixes.

Today I invite you to help us beta test react-scripts@1.0.0 for a few days before the public release.
It used to be called 0.10 but we figured there’s enough improvements to make it 1.0.

To create a new app with it, run:

create-react-app my-app --scripts-version react-scripts@canary

To upgrade an existing app, replace "react-scripts": "0.9.5" in your package.json with:

    "react-scripts": "canary"

and run npm install (or yarn).

There is no changelog yet, but you can open the milestone to get a sense of included changes.

A few highlights:

There are a few more changes we plan to get into 1.0.0, but this should be enough the first public testing.

Please report any issues you bump into in this thread. We want this release to be as solid as possible, even though it’s unlikely we’ll keep it unreleased for much longer.

Big thanks to all the contributors. This will be our biggest release yet.

Activity

  1. RohovDmytro commented on May 16, 2017

    @RohovDmytro

    Testing. Compilation failed. Something is wrong with webpack.

    Will try to get more info.

    What I've tried to solve

    • run yarn upgrade. This got me into:
    Failed to compile.
    
    ./~/react-error-overlay/lib/utils/unmapper.js
    Module not found: Can't resolve '/Users/dan/p/create-react-app/packages/babel-preset-react-app/node_modules/babel-runtime/regenerator' in '/[---------]/my-project/node_modules/react-error-overlay/lib/utils'
    
    • removing node_modules and yarn.lock with fresh install did not help either.
  2. gaearon commented on May 16, 2017

    @gaearon
    ContributorAuthor

    @rogovdm

    Can you provide minimal project reproducing this?

  3. RohovDmytro commented on May 16, 2017

    @RohovDmytro

    @gaearon Please, notice /dan/p/ part in path. Something is clearly wrong. 😺

  4. gaearon commented on May 16, 2017

    @gaearon
    ContributorAuthor

    Hmm yea that looks funny.

  5. gaearon commented on May 16, 2017

    @gaearon
    ContributorAuthor

    Maybe something in my local Lerna setup got messed up. I'll try to republish from another laptop in an hour or two.

  6. micooz commented on May 16, 2017

    @micooz

    Same problem:

    Failed to compile.
    
    ./~/react-error-overlay/lib/utils/unmapper.js
    Module not found: Can't resolve '/Users/dan/p/create-react-app/packages/babel-preset-react-app/node_modules/babel-runtime/regenerator' in '/home/micooz/Projects/blinksocks-desktop/frontend/node_modules/react-error-overlay/lib/utils'
    
  7. gaearon commented on May 16, 2017

    @gaearon
    ContributorAuthor

    Can you edit that file by hand for now to remove the absolute filename from it? Are there more such files?

  8. RohovDmytro commented on May 16, 2017

    @RohovDmytro

    @gaearon checked node_modules for /Users/dan pattern.

    31 results in 9 files

    Search results screenshot

  9. RohovDmytro commented on May 16, 2017

    @RohovDmytro

    All of .js files are about regenerator module.

  10. stepankuzmin commented on May 16, 2017

    @stepankuzmin

    Fixing path in react-error-overlay did the trick for me

  11. jamesmcallister commented on May 16, 2017

    @jamesmcallister

    I can confirm that dan is lurking my on pc as well 📦
    I changed the imports from

    import _regeneratorRuntime from '/Users/dan/p/create-react-app/packages/babel-preset-react-app/node_modules/babel-runtime/regenerator';

    to

    import _regeneratorRuntime from '../../../babel-runtime/regenerator';

    seems to work now. start and build works

  12. bneumann commented on May 16, 2017

    @bneumann

    Same problem here. Fixed by renaming my user to Dan :)
    No actually @jamesmcallister is right. It is in the mapper, unmapper and getSourceMap file

  13. 42 remaining items

  14. mbifulco commented on May 18, 2017

    @mbifulco

    Updating an existing project - this is working great for me so far. Thanks to you and your team, @gaearon!

  15. ffxsam commented on May 19, 2017

    @ffxsam

    I get get a new warning:
    [eslint] Definition for rule 'jsx-a11y/alt-text' was not found (jsx-a11y/alt-text)

    I get this warning now too, and can't figure out how to get rid of it. It's not documented in the README, and Googling around for this didn't turn up anything useful.

  16. gaearon commented on May 19, 2017

    @gaearon
    ContributorAuthor

    Where do you get it? You have not specified your editor, plugin, whether you use global ESLint for it, etc.

  17. gaearon commented on May 19, 2017

    @gaearon
    ContributorAuthor

    I'll close this issue since 1.0 is out but please file new ones if something is confusing!

  18. ffxsam commented on May 19, 2017

    @ffxsam

    Nuclide, latest version (of Atom as well). No global eslint installed.
    BTW, I found the plugin & its documentation. Fixed it with the following in my .eslintrc:

      "rules": {
        "jsx-a11y/alt-text": "off",
    
  19. gaearon commented on May 19, 2017

    @gaearon
    ContributorAuthor

    That's not the right fix, you're still running wrong versions of plugins. This silences this warning but you'll see more breakage in the future. I suggest fixing the root cause rather than symptoms.

    Let's try this:

    1. Ensure that in Atom ESLint settings you have "Use Global ESLint" turned off
    2. Run npm install in your project (or yarn)
    3. Quit Atom (ensure its process doesn't hang around)
    4. Start Atom again

    I think that should help but let me know if not, and we can debug more.

  20. ffxsam commented on May 19, 2017

    @ffxsam

    That did the trick! I noticed that .eslintrc changes would get recognized by closing a file and reopening it, but in this case, quitting Atom entirely was required.

  21. gaearon commented on May 19, 2017

    @gaearon
    ContributorAuthor

    Yea. Since it loads rules into memory, their code sticks around in the require cache even after closing the file.

  22. slightly-askew commented on May 22, 2017

    @slightly-askew

    Hi gaearon & all, I'm getting the following flow error in both Nuclide and VS Code. I've tried the above steps you recommended several times but no joy. Also tried deleting node_modules and reinstalling.

    identifier ESLintContext Could not resolve name

    screen shot 2017-05-22 at 11 20 44 am

    Doesn't happen in React Scripts v0.9.x; only when upgrading to 1.0.2-3

    In Nuclide 0.228.0:

    • Linter is disabled
    • linter-eslint 8.1.7 is enabled with use global off

    In VS Code 1.12.2:

    • ESLint is enabled

    Here are my .eslintrc and .flowconfig settings:

    screen shot 2017-05-22 at 11 01 41 am

    devDependancies:

    "devDependencies": {
        "@kadira/storybook": "^2.21.0",
        "eslint-plugin-jsx-a11y": "^5.0.3",
        "flow-bin": "^0.42.0",
        "react-scripts": "^1.0.3",
        "stylelint": "^7.10.1",
        "stylelint-config-standard": "^16.0.0"
      },
    

    Any suggestions much appreciated!

  23. gaearon commented on May 22, 2017

    @gaearon
    ContributorAuthor

    The error is because Flow is trying to typecheck the ESLint plugin.
    You probably want to add .*/eslint-plugin-jsx-a11y/.* to [ignore] in your .flowconfig.

  24. slightly-askew commented on May 23, 2017

    @slightly-askew

    Ahh ok that worked, thanks very much :)

  25. zerubeus commented on Jun 13, 2017

    @zerubeus

    @gaearon I don't have global ESlint, and I'm using VSCode, and I have this warning in both when working locally and the Tarvic CI is breaking because of this same warning : Definition for rule 'jsx-a11y/alt-text' was not found jsx-a11y/alt-text, this occurred after updating to react-script 1.0.7

  26. gaearon commented on Jun 13, 2017

    @gaearon
    ContributorAuthor

    @zerubeus The public testing has finished a long time ago so this is not an appropriate issue. Please file a new issue with an example project reproducing this. Thanks!

  27. locked and limited conversation to collaborators on Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions