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

it does not work #1

Open
cajan opened this issue Jan 24, 2019 · 1 comment
Open

it does not work #1

cajan opened this issue Jan 24, 2019 · 1 comment

Comments

@cajan
Copy link

cajan commented Jan 24, 2019

I have installed parcel-plugin-alias

.aliasrc.js like this:

const path = require('path')

function resolve (dir) {
  return path.join(__dirname, dir)
}

module.exports = {
  '@': resolve('src')
}

I use it like this:
import { NO_CTRL_AUTHS } from '@/assets/js/g';

The output is as follows:
/app/web/src/App.vue: Failed to install @/assets

my parcel version is 1.11.0

thx.

@tw00
Copy link

tw00 commented Apr 4, 2019

Hi cajan,

I made a fork that fixes that issue:

https://github.com/tw00/parcel-plugin-alias

Best regards,
Thomas

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