Giter Club home page Giter Club logo

Comments (3)

dalerka avatar dalerka commented on July 21, 2024 1

Well, @soupette followed the docs to migrate, but now getting the same error for a different file:

🔸  Administration Panel
...
🏗  Building the admin...
✅  Success
...
ls: no such file or directory: * -d
🔸  Plugin - Analytics
📦  Installing packages...
🏗  Building...
  0% compiling/home/..../strapi-examples/cheesecakes/plugins/analytics/node_modules/babel-core/lib/transformation/file/index.js:558
      throw err;
      ^
SyntaxError: /home/..../strapi-examples/cheesecakes/plugins/users-permissions/services/UsersPermissions.js: Unexpected token (34:12)
  32 |             controller,
  33 |             action: action.toLowerCase(),
> 34 |             ...params.permissions[type].controllers[controller][action]
     |             ^
  35 |           }));
  36 |         });
  37 |       });

Is there a way or a script to make strapi updates and migrations easier than described in docs?

from strapi-examples.

dalerka avatar dalerka commented on July 21, 2024

Same issue here. Could this be due to some migrations required between Strapi versions?
But also could be a problem with babel-related package:
I changed the line 268 (cheesecakes/plugins/graphql/services/GraphQL.js) to ES5 version as:
ctx.params = Object.assign(params, { [model.primaryKey]: ctx.params.id });

and the error threw at a later stage (again for the ... spread operator):

...
55% building modules 380/381 modules 1 active ...ode_modules/webpack/buildin/mo  
0% compiling /home/.../strapi-examples/cheesecakes/admin/node_modules/babel-core/lib/transformation/file/index.js:558
      throw err;
      ^
SyntaxError: /home/.../strapi-examples/cheesecakes/plugins/graphql/services/GraphQL.js: Unexpected token (569:20)
  567 |                     // related to this entry.
  568 |                     [ref.primaryKey]: arrayOfIds,
> 569 |                     ...where.where
      |                     ^
  570 |                   }).where;
  571 |                   break;
  572 |                 default:

p.s.: tried removing the /admin/node_modules/ and re-installing (also with yarn) but didn't help.

from strapi-examples.

soupette avatar soupette commented on July 21, 2024

I just checked the app is not up to date with the latest version of strapi... You need to update it

from strapi-examples.

Related Issues (20)

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.