Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Error: Unexpected token #209

@gluons

Description

@gluons

Expected behavior

Bundle without error.

Actual behavior

Get Error: Unexpected token

[!] Error: Unexpected token
src\components\PlainHello.vue?rollup-plugin-vue=styles.0.css (2:4)
1:
2: div span[data-v-408f8e39] {
       ^
3:   color: red;
4: }

Steps to reproduce the behavior

I've created a repo to repro this issue.

git clone https://github.com/gluons/rollup-plugin-vue-issue-209.git
cd rollup-plugin-vue-issue-209
yarn
yarn build

I try to create Vue library with Pug + TypeScript + SCSS and bundle with rollup-plugin-vue but this issue stop me. 😥

I've tried with rollup-plugin-typescript and rollup-plugin-typescript2 but it doesn't seem to work.

I've created multiple Vue components for testing this issue but all of them get this error.

  1. A component with TypeScript as script
  2. A component with TypeScript as script and Pug as template
  3. A component with TypeScript as script and SCSS as style
  4. A component with TypeScript as script, Pug as template and SCSS as style
  5. A component with just normal HTML, JavaScript and CSS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions