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

Doesn't load #2

Open
cloud-tribal opened this issue Mar 3, 2017 · 4 comments · May be fixed by #4
Open

Doesn't load #2

cloud-tribal opened this issue Mar 3, 2017 · 4 comments · May be fixed by #4

Comments

@cloud-tribal
Copy link

When using README instructions:

ERROR in ./~/vue-bulma-progress-tracker/src/index.js
Module parse failed: /Users/MyUsername/Documents/Projects/app/node_modules/vue-bulma-progress-tracker/src/index.js Unexpected token (1:7)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (1:7)
@jmringrose
Copy link

I have the same issue.
image

Other than that no problems. Seems to not like:

image

I researched the export syntax and it looks ok. Can you confirm the versions of NPM etc.?

Oh and thanks for a great looking admin panel I am excited to try it for a project.

@MBach
Copy link

MBach commented Sep 22, 2017

Try this in index.js

import StepItem from './StepItem'
import ProgressTracker from './ProgressTracker'
export default ProgressTracker
export { StepItem } 

How to proceed:

  • copy lib from ~/node_modules/ to ~/local_modules/
  • change path in your code:
    import ProgressTracker, { StepItem } from '~/local_modules/progress-tracker'

@walty8
Copy link

walty8 commented Dec 16, 2017

This is confirmed to be the issue when using node_modules as a soft link from another place (otherwise it's fine), there are more than 1000 packages in node_modules, this is the only one that reported problem.

The fix by @MBach works.

My npm version is 4.4.4 and node version is v6.10.2.

@mrassili mrassili linked a pull request Aug 15, 2019 that will close this issue
@dcolley
Copy link

dcolley commented Sep 28, 2019

In the Tracker.vue just change:

/* @import "~progress-tracker/app/styles/progress-tracker.scss"; */
@import "~progress-tracker/src/styles/progress-tracker.scss";

... that worked for me (at least I don't have the build error any more ;)

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

Successfully merging a pull request may close this issue.

5 participants