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

packaging component(s) failed #13

Open
mattiaerre opened this issue Aug 28, 2018 · 0 comments
Open

packaging component(s) failed #13

mattiaerre opened this issue Aug 28, 2018 · 0 comments

Comments

@mattiaerre
Copy link
Owner

Description

it is no longer working the packaging of some components, I presume the ones using React, as I've got the following error when I try to run npx oc dev . 3030:

Packaging components...an error happened while packaging /Users/mrichetto/projects/oc-hub/oc-my-next-run: ./oc-my-next-run/server.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: Unexpected token (26:29)
  24 |   };
  25 |   const props = { model };
> 26 |   const app = renderToString(<App {...props} />);
     |                              ^
  27 |   const sheet = new ServerStyleSheet();
  28 |   const css = sheet.getStyleTags();
  29 |   callback(null, {
BabelLoaderError: SyntaxError: Unexpected token (26:29)
  24 |   };
  25 |   const props = { model };
> 26 |   const app = renderToString(<App {...props} />);
     |                              ^
  27 |   const sheet = new ServerStyleSheet();
  28 |   const css = sheet.getStyleTags();
  29 |   callback(null, {
    at transpile (/Users/mrichetto/projects/oc-hub/node_modules/babel-loader/lib/index.js:65:13)
    at /Users/mrichetto/projects/oc-hub/node_modules/babel-loader/lib/fs-cache.js:118:18
    at ReadFileContext.callback (/Users/mrichetto/projects/oc-hub/node_modules/babel-loader/lib/fs-cache.js:31:21)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)
Retrying in 10 seconds...

any idea what this could be @matteofigus @nickbalestra ?

  • npx oc --version: 0.44.12

  • node -v: v8.11.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant