Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run setup doesn't work in 3.0.0-alpha.12 #858

Closed
abdonrd opened this issue Mar 27, 2018 · 9 comments
Closed

npm run setup doesn't work in 3.0.0-alpha.12 #858

abdonrd opened this issue Mar 27, 2018 · 9 comments
Assignees
Labels
issue: bug Issue reporting a bug severity: high If it breaks the basic use of the product status: confirmed Confirmed by a Strapi Team member or multiple community members

Comments

@abdonrd
Copy link
Contributor

abdonrd commented Mar 27, 2018

Node.js version: v9.8.0
npm version: 5.8.0
Strapi version: 3.0.0-alpha.11.2
Operating system: macOS

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

screen shot 2018-03-27 at 20 03 22

If the current behavior is a bug, please provide the steps to reproduce the problem

strapi new strapi-demo
cd strapi-demo
npm run setup

What is the expected behavior?

The setup working.

@lauriejim lauriejim added issue: bug Issue reporting a bug severity: high If it breaks the basic use of the product status: confirmed Confirmed by a Strapi Team member or multiple community members labels Mar 27, 2018
@lauriejim
Copy link
Contributor

I think if we close this issue #778 it will fix your issue.
object spread is the problem :/

@abdonrd
Copy link
Contributor Author

abdonrd commented Mar 27, 2018

@lauriejim but I have had this issue using Node v9.8.0.

@lauriejim lauriejim added this to the v3.0.0-alpha.12 milestone Mar 28, 2018
@abdonrd
Copy link
Contributor Author

abdonrd commented Mar 28, 2018

Only as suggestion, I propose to move it to v3.0.0-alpha.11.3, because it starts to fail in v3.0.0-alpha.11.2. With v3.0.0-alpha.11.1 works well.

@abdonrd
Copy link
Contributor Author

abdonrd commented Apr 3, 2018

Maybe the bug is from #773, since it is the moment in which file strapi-plugin-users-permissions/services/UsersPermissions.js was edited.

@bugvish
Copy link

bugvish commented Apr 6, 2018

Quick and dirty hack:

Change Line 140 of /strapi/packages/strapi-helper-plugin/node_modules/babel-core/lib/transformation/file/index.js to:
plugins: ["jsx","flow","objectRestSpread"]

@L8NiteOwl
Copy link

Thanks, @bugvish! I was really scratching my head on this one. This temporary hack worked perfectly for me.

@abdonrd
Copy link
Contributor Author

abdonrd commented Apr 18, 2018

I just tried with the new version (v3.0.0-alpha.12) and it still happens.

screen shot 2018-04-18 at 16 02 42

@lauriejim lauriejim changed the title npm run setup doesn't work in 3.0.0-alpha.11.2 npm run setup doesn't work in 3.0.0-alpha.12 Apr 18, 2018
@lauriejim lauriejim reopened this Apr 18, 2018
@soupette
Copy link
Contributor

@abdonrd I currently working on this command, and I'm facing the same issue as you do...

I'm facing two problems here:

  • Webpack is trying to build folders that are not included in its configuration (entries)
  • The babel-loader does not seem to use the babel-plugin-transform-object-rest-spread plugin.

Currently I'm trying to find out why webpack is building the services folder when we try to build only the admin and why we manage to build the plugins from the monorepo whereas it doesn't work inside a project 🙈🙈🙈.

@soupette
Copy link
Contributor

#1033

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: high If it breaks the basic use of the product status: confirmed Confirmed by a Strapi Team member or multiple community members
Projects
None yet
Development

No branches or pull requests

5 participants