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

Build error when using rollup-plugin-node-globals #83

Open
LokeSonne opened this issue Jan 4, 2019 · 1 comment
Open

Build error when using rollup-plugin-node-globals #83

LokeSonne opened this issue Jan 4, 2019 · 1 comment

Comments

@LokeSonne
Copy link

LokeSonne commented Jan 4, 2019

Resources:
Before submitting an issue, please consult our docs.

Stencil version:

@stencil/core v0.16.2-2

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://stencil-worldwide.slack.com

Current behavior:
Compilation error when running npm start:
[ ERROR ] Rollup: Plugin Error
Unexpected token (5:17675) in
/router-rollup-test/node_modules/@stencil/state-tunnel/dist/esm/es5/stencil-state-tunnel.core.js

Expected behavior:
No error - code compiles

Steps to reproduce:
Create project using npm init stencil app
Follow instructions from Bundling and add packages:

npm install rollup-plugin-node-builtins --save-dev
npm install rollup-plugin-node-globals --save-dev

And update stencil.config.tsto reflect:

import builtins from 'rollup-plugin-node-builtins';
import globals from 'rollup-plugin-node-globals';

export const config: Config = {
  plugins: [
    builtins(),
    globals()
  ]
};

Other information:
I updating @stencil/core to latest version (0.16.2-2) doesn't fix it.
I'm using
@stencil/router@0.3.1
rollup-plugin-node-builtins@2.1.2
rollup-plugin-node-globals@1.4.0

@Matthew-Smith
Copy link

I am having this same issue and reported it on @stencil/core. I created a sample repo if whoever tests wants to use it instead of setting up a new stencil app (though that is basically all I did)

https://github.com/Matthew-Smith/stencil-rollup-error

rwaskiewicz added a commit that referenced this issue Jun 8, 2022
update this starter to jest 27 by upgrading jest, its typings, and the
jest-cli. this upgrade requires the latest version of stencil, whose
minimum version is updated to v2.13.0
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

2 participants